This is not a homework, I am just curious.
INFINITE is the key word here.
I wish to use it as for p in primes(). I believe that this is a built-
for p in primes()
I wrote an article about an infinite primes generator some times ago:
http://stacktrace.it/2008/01/progetto-eulero-problema-3/
It's in Italian but you may have a pesky translation using Google: http://tinyurl.com/yzpyeom