Hello, yes, apparently it does depend on previous values, I began to search for all values starting at 2, well, a bit long to do that. correction about pari-gp, after 1 billion it starts to slow down a lot, my first diagnostic was wrong, it cannot do beyond a few billions. and, ... about Maple, as usual Maple is way too slow even before 1 billion. The largest number I could test is Prime[1 000 000 000 ] in mma. If you need more values, you need to refer to sequence : A006988 and that's about it. Simon Plouffe Le dim. 26 mai 2019 à 10:36, Adam P. Goucher <apgoucher@gmx.com> a écrit :
I get the same problem in Mathematica (wolfram11.3.0 command line). Interestingly, there must be some memoization happening, because it doesn't hang if you previously compute Prime[8199999999]:
$ wolfram11.3.0 Mathematica 11.3.0 Kernel for Linux x86 (64-bit) Copyright 1988-2018 Wolfram Research, Inc.
In[1]:= AbsoluteTiming[{Prime[8199999999], Prime[8200000000]}]
Out[1]= {0.468778, {205021987297, 205021987301}}
Did you try adjacent values in pari-gp?
Best wishes,
Adam P. Goucher
Sent: Sunday, May 26, 2019 at 8:00 AM From: "Simon Plouffe" <simon.plouffe@gmail.com> To: math-fun <math-fun@mailman.xmission.com> Subject: [math-fun] about bugs in mathematica and pari-gp
Hello,
here is a strange bug,
type Prime[8200000000] or Prime[93000000000] in mathematica and your machine will hang forever....
and by a bizarre coincidence, the same thing happens with pari-gp with the value prime(8200000000), I could not test 93 000 000 000 because it is out of reach for pari-gp (I think).
Does anybody has any idea why the programs are bugging on these particular values ?
Best regards and have a nice day. Simon Plouffe _______________________________________________ math-fun mailing list math-fun@mailman.xmission.com https://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun
_______________________________________________ math-fun mailing list math-fun@mailman.xmission.com https://mailman.xmission.com/cgi-bin/mailman/listinfo/math-fun