![]() |
|
|
#12 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
|
|
|
|
|
|
#13 |
|
I moo ablest echo power!
May 2013
29·61 Posts |
No primes for n=20k to 21k.
|
|
|
|
|
|
#14 |
|
I moo ablest echo power!
May 2013
6E916 Posts |
Based on how fast everything's going, I'll go ahead and run up to n=30k if that's alright.
Last fiddled with by wombatman on 2015-12-08 at 19:58 |
|
|
|
|
|
#15 | |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36×13 Posts |
Quote:
The sieve I used was written quick'n'dirty in Pari. I vaguely remember that there was some sieve for this form, too. Ksieve if I am not mistaken. |
|
|
|
|
|
|
#16 |
|
Oct 2007
Manchester, UK
135510 Posts |
I was unable to find Ksieve, do you know who wrote it or where there's a download for it?
Until a better alternative arrives, I've attached a list of n for 10^2n - 10^n - 1 for n <= 100,000 and it has been sieved for p < 1,000,000. Here is the code in pari/gp for anyone who wants to check for correctness or edit it to sieve deeper. Code:
{
out="C:/sieve_out.txt";
lim=1000000;
ns=100000;
s=vector(ns,i,i=1);
forprime(p=2,lim,
t = Mod(10,p);
for(n=2,ns,
t*=10;
if(t*(t-1)==1,s[n]=0)
)
);
for(n=1,ns,
if(s[n]==1,write(out, n))
);
}
|
|
|
|
|
|
#17 | |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
224058 Posts |
Quote:
Ksieve was Phil Carmody's. Someone picked it up for the 10^a-10^b-1 searches that were run about a year ago... I tried it myself (iirc for a very brief time) but didn't figure the magic that effects the 'abc10' sieve mode. Last fiddled with by Batalov on 2015-12-09 at 18:24 |
|
|
|
|
|
|
#18 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36·13 Posts |
Here's a somewhat faster sieve:
Code:
{
out="sieve_out_2.txt";
lim=10000000;
ns=200000;
s=vector(ns,i,i=1);
forprime(p=11,lim,if(p%10!=1 && p%10!=9,next);
q=sqrt(Mod(5,p)); o=znorder(t=Mod(10,p));
r=znlog((1+q)/2,t,o);if(r,forstep(n=r,ns,o,s[n]=0));
r=znlog((1-q)/2,t,o);if(r,forstep(n=r,ns,o,s[n]=0)));
for(n=1,ns,if(s[n]==1,write(out, n)));
}
|
|
|
|
|
|
#19 |
|
"Forget I exist"
Jul 2009
Dumbassville
20C016 Posts |
is it any faster in parallel with say parforprime or parfor ? those forstep could be turned into a parfor loops using ox+r for some value x but my PARI and computer both are useless for parallel computation.
Last fiddled with by science_man_88 on 2015-12-09 at 23:11 |
|
|
|
|
|
#20 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36·13 Posts |
|
|
|
|
|
|
#21 |
|
I moo ablest echo power!
May 2013
29×61 Posts |
|
|
|
|
|
|
#22 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36×13 Posts |
Here is the sieve for you - attached, if you want.
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| a numberphile like channel by kids | science_man_88 | science_man_88 | 0 | 2017-11-17 21:37 |
| prime gap- numberphile vid | firejuggler | Prime Gap Searches | 8 | 2017-07-19 20:22 |
| Near-repdigit 5(1)w | IvanP | FactorDB | 1 | 2013-10-03 15:41 |
| Repdigit prime project | jasong | Open Projects | 23 | 2011-01-22 15:14 |
| possibly abandoned repdigit prime project | jasong | jasong | 8 | 2007-08-11 03:37 |