I implemented a Sieve of
Eratosthenes<http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes>primes
algorithm using generators:

http://gist.github.com/309109


This code which chains together 500 generators works fine (~1/20th of a
second) on my laptop. The code which chaines 501 generators (s/498/499/ on
line 23) doesn't seem to finish.

Does anyone know the reason for this, or can anyone point me where to look
for a good explanation?

Cheers,
Andrey
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to