Hello,
I was working on a sieve of eratosthenes and ran into an error I don't
understand.
>>> size = 10000000000
>>> l = [0,1]*(size/2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: cannot fit 'long' into an index-sized integer
Is there a type or something that I can do to prevent this error? Or am
I on the wrong track for such large primes?
Thanks,
William Stephens
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor