mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Lounge

Reply
 
Thread Tools
Old 2015-12-08, 15:21   #12
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
I think Mini-Geek was talking about sieving much higher than 7.
he asked how not how high, or was it potentially obvious.
science_man_88 is offline   Reply With Quote
Old 2015-12-08, 17:10   #13
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

29·61 Posts
Default

No primes for n=20k to 21k.
wombatman is offline   Reply With Quote
Old 2015-12-08, 19:58   #14
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

6E916 Posts
Default

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
wombatman is offline   Reply With Quote
Old 2015-12-09, 02:44   #15
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

36×13 Posts
Default

Quote:
Originally Posted by Mini-Geek View Post
How did you pre-sieve this sequence? Is there a tool out there that can take this form, or is it easy to tweak some siever to take a general-form number, maybe? I just ran PFGW with -f so it tried factoring each number before doing its N+1 test.
Don't run N+1 test, run -f and a simple PRP test - you may save a ton of time. Don't run LLR in "ABC \$a^\$b-\$a^\$c-1" mode either because if fails to report primes (I posted about that in the LLR thread).

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.
Batalov is offline   Reply With Quote
Old 2015-12-09, 17:08   #16
lavalamp
 
lavalamp's Avatar
 
Oct 2007
Manchester, UK

135510 Posts
Default

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))

);

}
Attached Files
File Type: zip sieve_out.zip (55.6 KB, 182 views)
lavalamp is offline   Reply With Quote
Old 2015-12-09, 17:58   #17
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

224058 Posts
Default

Quote:
Originally Posted by lavalamp View Post
Here is the code in pari/gp for anyone who wants to check for correctness or edit it to sieve deeper.
It is correct.

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
Batalov is offline   Reply With Quote
Old 2015-12-09, 22:38   #18
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

36·13 Posts
Default

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)));
}
Batalov is offline   Reply With Quote
Old 2015-12-09, 23:10   #19
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

20C016 Posts
Default

Quote:
Originally Posted by Batalov View Post
Here's a somewhat faster sieve:
...
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
science_man_88 is offline   Reply With Quote
Old 2015-12-11, 01:53   #20
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

36·13 Posts
Default

Quote:
Originally Posted by wombatman View Post
Based on how fast everything's going, I'll go ahead and run up to n=30k if that's alright.
I'll run 30-50k or until the first prime in that interval ;-)
Batalov is offline   Reply With Quote
Old 2015-12-11, 02:30   #21
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

29×61 Posts
Default

Quote:
Originally Posted by Batalov View Post
I'll run 30-50k or until the first prime in that interval ;-)
Sounds good! I'll go ahead and do 50-70k. No primes found up to n=30k.
wombatman is offline   Reply With Quote
Old 2015-12-11, 04:30   #22
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

36×13 Posts
Default

Here is the sieve for you - attached, if you want.
Attached Files
File Type: zip sieve50-70.zip (17.5 KB, 169 views)
Batalov is offline   Reply With Quote
Reply



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

All times are UTC. The time now is 22:47.


Fri Jul 16 22:47:52 UTC 2021 up 49 days, 20:35, 1 user, load averages: 2.01, 3.17, 3.04

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.