#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:                 |         Author:  R. Andrew Ohana                 
     Merged:                 |   Dependencies:                                  
-----------------------------+----------------------------------------------

Comment(by rohana):

 Hopefully that was the only issue with 32-bit systems. Basically gmp wants
 a 32-bit int for mpz_set_ui on 32-bit systems, so I gave it what it wanted
 (this was also causing the issue with the `__sieve` function, since I use
 the `mpz_sqrt` function to calculate the argument).

 I am currently doing some more thorough testing with large values on a
 64-bit machine, so that we can be sure there isn't any more breakage on
 the stable platform.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11475#comment:30>
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.

Reply via email to