#9401: pari(n).isprime(1) does not give the primality certificate to the user
------------------------------------+----------------------------
Reporter: zimmerma | Owner: AlexGhitza
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.12
Component: basic arithmetic | Resolution:
Keywords: prime number | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
------------------------------------+----------------------------
Changes (by zimmerma):
* status: new => needs_review
* cc: wstein, robertwb (added)
Comment:
the attached patch does several things:
1) it fixes two typos in {{{gen.pyx}}}
2) it corrects the behaviour of {{{pari(n).isprime(1)}}} which incorrectly
was returning {{{False}}} for prime n
3) for prime n, now {{{pari(n).isprime(1)}}} returns a tuple {{{(True,
cert)}}} where {{{cert}}} is the primality certificate (currently as Pari
object, I didn't figure out how to convert it to a Python object)
Comments are welcome.
Paul
--
Ticket URL: <http://trac.sagemath.org/ticket/9401#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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.