You did not say what command you were using.  The documentation for both
primes() and prime_range() show examples with much larger primes.

John Cremona


On Tue, 12 Mar 2019 at 11:25, Peter Luschny <[email protected]> wrote:

> ValueError: Cannot compute primes beyond 436273290
>
>
> I think SageMath should do better.
>
>
> Cheers, Peter
>
>
>
> /opt/sagemath-8.4/local/lib/python2.7/site-packages/sage/rings/fast_arith.pyx 
> in sage.rings.fast_arith.prime_range 
> (build/cythonized/sage/rings/fast_arith.c:3390)()     46 from 
> sage.rings.integer cimport Integer     47 ---> 48 cpdef prime_range(start, 
> stop=None, algorithm="pari_primes", bint py_ints=False):     49     r"""     
> 50     List of all primes between start and stop-1, inclusive.  If the
> /opt/sagemath-8.4/local/lib/python2.7/site-packages/sage/rings/fast_arith.pyx 
> in sage.rings.fast_arith.prime_range 
> (build/cythonized/sage/rings/fast_arith.c:2946)()    145             # Adding 
> 1500 should be sufficient to guarantee an    146             # additional 
> prime, given that c_stop < 2^63.--> 147             pari.init_primes(c_stop + 
> 1500)    148             assert maxprime() >= c_stop    149
> cypari2/pari_instance.pyx in cypari2.pari_instance.Pari.init_primes()
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" 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 https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" 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 https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to