#5943: Sage 3.4.2.a0: len(prime_range(2^50)) segfaults
-----------------------------+----------------------------------------------
Reporter: mabshoff | Owner: was
Type: defect | Status: new
Priority: critical | Milestone: sage-4.3
Component: number theory | Keywords:
Work_issues: | Author:
Upstream: N/A | Reviewer:
Merged: |
-----------------------------+----------------------------------------------
Changes (by wuthrich):
* upstream: => N/A
Comment:
I get now (in sage 4.2.1)
{{{
len(prime_range(2^50))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_4.py", line 5, in <module>
len(prime_range(_sage_const_2 **_sage_const_50 ))
File "", line 1, in <module>
File "fast_arith.pyx", line 56, in sage.rings.fast_arith.prime_range
(sage/rings/fast_arith.c:3822)
File "fast_arith.pyx", line 100, in sage.rings.fast_arith.prime_range
(sage/rings/fast_arith.c:3508)
File "gen.pyx", line 8663, in
sage.libs.pari.gen.PariInstance.primes_up_to_n
(sage/libs/pari/gen.c:41327)
OverflowError: long int too large to convert to int
}}}
which is the same problem as #7017.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5943#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.