#10277: random_prime() fails to work for values > 2^40 if a lower bound is set
-----------------------------+----------------------------------------------
Reporter: drkirkby | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-4.6.1
Component: number theory | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
Comment(by was):
(1) The performance comparison to Mathematica is invalid since Mathematica
only returns a pseudoprime, and for that (proof=False), sage is actually
much faster than Mathematica already.
(2) On both 32 and 64-bit Linux I can not reproduce this.
{{{
sage: random_prime(2^40+1,lbound=12)
477618500201
sage: sys.maxint
2147483647
}}}
And reading the source code I can't see what this has to do with prime_pi.
I'm tempted to mark this ticket invalid if there isn't further info.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10277#comment:1>
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.