Prime number generator fails for large limit values
Bug #406593 reported by
Scott Armitage
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyPE |
New
|
Undecided
|
Scott Armitage |
Bug Description
The prime number generator PyPE.pemath.
Version information:
Python: 2.6.2
lp:pype : 7
Error information:
>>> PyPE.pemath.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "PyPE\pemath.py", line 92, in primes
sieve = [True] * (n+1)
OverflowError: cannot fit 'long' into an index-sized integer
Changed in pype: | |
assignee: | nobody → Scott Armitage (scott-armitage) |
To post a comment you must log in.