![]() |
|
|
#12 |
|
Feb 2016
UK
6608 Posts |
That's a bigger task for when I have more time. I'd have to convert the test results file to something more sheet friendly and apply the calc to it...
|
|
|
|
|
|
#13 |
|
Feb 2016
UK
6608 Posts |
Ok, that wasn't as bad as I thought to work out.
Code:
n actual predicted 10-100 2 4.0 100-1k 5 7.0 1k-10k 7 6.7 10k-100k 9 6.5 100k-1M ? 6.6 1M-10M ? 6.5 100k-435k 4 4.2 1.50M-1.82M 0 0.5 Also it seems Excel's number limit is somewhere just over 2^1000... Last fiddled with by mackerel on 2019-10-22 at 12:18 Reason: tinkering with formatting |
|
|
|
|
|
#14 |
|
"Robert Gerbicz"
Oct 2005
Hungary
22×7×53 Posts |
A quick and dirty code for the sequence k*b^n+c in the range nmin<=n<=nmax:
(for ultra special sequences Mersenne/Fermat it is ofcourse a little off) Code:
fun(k,b,c,nmin,nmax,pmax=1000)={mult=1.0;forprime(p=2,pmax,r=Mod(1,p);
cnt=0;for(i=1,p-1,r*=b;if(lift(k*r+c)!=0,cnt++));
mult*=cnt*p/(p-1)^2);
return(mult/log(b)*log(nmax/nmin))}
Last fiddled with by R. Gerbicz on 2019-10-22 at 12:27 Reason: grammar typo |
|
|
|
|
|
#15 | |
|
Jun 2003
Oxford, UK
7·277 Posts |
Quote:
For the power series with the greatest number of probable primes (Reisel k= 1480472640274704456611717878515654164205) the following prp stats arise from using the power of 10 method : Code:
n range # of primes n 1e0 - 1e1-1 2 n 1e1 - 1e2-1 13 n 1e2 - 1e3-1 43 n 1e3 - 1e4-1 54 n 1e4 - 1e5-1 52 n 1e5 - 1e6-1 51 *actually to n = 834442 I imagine that computers are a bit faster now, but there was no fast method for sieving or proving prp status back then. I wonder if things have moved on? Last fiddled with by robert44444uk on 2019-11-04 at 16:10 |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pay attention please. | a1call | Puzzles | 28 | 2018-05-25 00:03 |
| School Teachng | davieddy | Lounge | 6 | 2011-09-27 01:20 |
| Attention vaughan | mdettweiler | No Prime Left Behind | 2 | 2009-12-26 04:23 |
| Prime Search at School | Unregistered | Information & Answers | 5 | 2009-10-15 22:44 |
| School's out! | ixfd64 | Lounge | 15 | 2005-06-29 13:45 |