#11475: improve prime_pi (speedup + small fixes)
--------------------------------------------------+-------------------------
Reporter: rohana | Owner: was
Type: enhancement | Status:
needs_review
Priority: major | Milestone: sage-4.7.1
Component: number theory | Keywords: primes,
prime counting, prime_pi
Work_issues: | Upstream: N/A
Reviewer: Yann Laigle-Chapuy, Leif Leonhardy | Author: R. Andrew
Ohana
Merged: | Dependencies:
--------------------------------------------------+-------------------------
Comment(by rohana):
Been busy, but I finally managed to get another patch (after running into
quite a number of issues). This has some pretty significant changes --
specifically to `legendre_phi` and `__sieve`.
`legendre_phi` now has keyboard interrupt support :). Also, it removes the
limit to `a` as well as make some other improvements to speed for various
special cases.
`__sieve` was rewritten to remove the use of `prime_range` and now works
directly through PARI. Also `sage_realloc` was added (I wasn't aware that
sage had `realloc`, I could have sworn that I tried using it before with
no luck).
Apply only trac_11475v10.patch
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11475#comment:51>
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.