#13516: prime_powers doesn't work with start very well
---------------------------------+------------------------------------------
       Reporter:  kcrisman       |         Owner:  was         
           Type:  defect         |        Status:  needs_review
       Priority:  major          |     Milestone:  sage-5.4    
      Component:  number theory  |    Resolution:              
       Keywords:  beginner       |   Work issues:              
Report Upstream:  N/A            |     Reviewers:              
        Authors:  Kevin Halasz   |     Merged in:              
   Dependencies:                 |      Stopgaps:              
---------------------------------+------------------------------------------

Comment (by khalasz):

 I've changed the patch so that s=stop.sqrt() is calculated outside of the
 for loop. After some tests, I saw that this was faster than setting
 s=stop.sqrt().n().

 Also, note that when p>s, the content of that if loop is a break command,
 meaning that the entire for loop ends. Thus, once a single p>s, no more p
 values are tried.

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