![]() |
|
|
#1 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
22×23×103 Posts |
Let's start from Ken Davis' construction. Observe the form that he used (which is similar to the form J.K.Andersen used before him).
Maybe we can find this even cheaper in computrons. Illustration: Let's take m=3*2^n, so that m+1 is prime. A tiny example m=3*2^534. Then we will sieve for two forms: p = k*m*(m^2 - 1)+ 6*m -1, p6 = p+6 ...and presto, done: 63166*3*2^534*(9*2^1068-1)+18*2^534-1 is prime, quite trivially, and 63166*3*2^534*(9*2^1068-1)+18*2^534+5 (with 3*2^534+1 as a helper) Now, repeat with m= 3*2^34350 3*2^42294 3*2^42665 3*2^44685 3*2^48150 3*2^55182 3*2^59973 The only part to write is a simple sieve, then sieve, and then do some PRP'ing. |
|
|
|
|
|
#2 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
22×23×103 Posts |
One-up
318725*3*2^2208*(9*2^4416-1)+18*2^2208-1 318725*3*2^2208*(9*2^4416-1)+18*2^2208+5 Next up 363629*3*2^3168*(9*2^6336-1)+18*2^3168-1 363629*3*2^3168*(9*2^6336-1)+18*2^3168+5 And slightly larger 2865046*7*2^6614*(49*2^13228-1)+42*2^6614-1 2865046*7*2^6614*(49*2^13228-1)+42*2^6614+5 |
|
|
|
|
|
#3 |
|
Sep 2002
Database er0rr
E9B16 Posts |
I am working on 34350 using -f -o of pfgw for "-1" as feedback to pfgw -f later on an ABC file with +5 & -1 in the header...
Last fiddled with by paulunderwood on 2019-04-20 at 03:46 |
|
|
|
|
|
#4 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
22·23·103 Posts |
If you don't sieve, you will waste enormous amount of time on ineligible k values.
I sieved to 1T. |
|
|
|
|
|
#5 | |
|
"Robert Gerbicz"
Oct 2005
Hungary
22×7×53 Posts |
Quote:
Let r=k*2^n+1 ~ sqrt(N) Proth prime, then search p in the form: Code:
p=c*r*2^n+6*r-5 where c=1,2,3,.. is running. Bingo, and the sieve is blazingly fast, because you need only 2^n mod s, where s is prime. example: Code:
k=165;n=100 for that r=k*2^n+1 is a Proth prime, and turned out that c=2920 is good. |
|
|
|
|
|
|
#6 | |
|
Sep 2002
Database er0rr
3,739 Posts |
Quote:
I have now written a sieve in pari-gp (which I will convert to PrimeSieve+GMP) and am testing the world record contender: p=c*(3*2^34350+1)*2^34350+6*(3*2^34350+1)-5
|
|
|
|
|
|
|
#7 |
|
Sep 2002
Database er0rr
72338 Posts |
I just can't my sieves to behave
![]() Moreover, I feel that any record breaking sexy pair needs to involve primorials in order to get the required density when searching. |
|
|
|
|
|
#8 | |
|
"Robert Gerbicz"
Oct 2005
Hungary
22·7·53 Posts |
Quote:
And for sieve why not use my ancient polysieve: https://primes.utm.edu/bios/page.php?id=3934 . That handle this problem also, I'll give how to feed this problem for the code. |
|
|
|
|
|
|
#9 |
|
"Robert Gerbicz"
Oct 2005
Hungary
101110011002 Posts |
Here it is:
Code:
$ ./polysieve Sieve P(s)+a*Q(s)+c for multiple c values, with fixed s=k*b^n+d; P,Q is polynom. Give k: 1 Give b: 2 Give n: 34350 Give d: 0 Give the degree of the P polynom: 1 Give the 0-th coefficient of P: 0 Give the 1-th coefficient of P: 18 Give the degree of the Q polynom: 2 Give the 0-th coefficient of Q: 0 Give the 1-th coefficient of Q: 1 Give the 2-th coefficient of Q: 3 Give the number of c values for the sieve: 2 0-th c value: 1 1-th c value: 7 Give start and end value for 'a' (in billions)! 0 10 Give the limit for sieving primes (maxp): 1000000000000 Give the name of the file to output the numbers! sexy.txt Using primes for wheelsieve up to 5 #define bound_small_primes 5//11 // used up to this bound all primes in wheel sieve (change it, but it is very critical) to lower the wheelsieve. The range for 'a' is really what you like (what was c in my previous post), above we test 'a' from 0 to 10 (in billions), and maxp=1000000000000. Note that we needed to use the s=2^n to make it an integer polynom. ps. use smaller example to test it out, say 534 instead of the large 34350 (you need to change only that line) to handle that case. My code also works for the general case, on every Proth numbers (with some modification on the polynoms). Last fiddled with by R. Gerbicz on 2019-04-20 at 21:45 |
|
|
|
|
|
#10 | |
|
Sep 2002
Database er0rr
3,739 Posts |
Quote:
I downloaded and successfully compiled PolySieve.c. [code deleted due to cross post] Last fiddled with by paulunderwood on 2019-04-20 at 21:58 |
|
|
|
|
|
|
#11 | |
|
"Robert Gerbicz"
Oct 2005
Hungary
22×7×53 Posts |
Quote:
Btw polysieve as you can see is single threaded and there is no save option, so don't stop it, however maybe from Puzzle-Peter there is an updated code with save option somewhere in the forum. Not thought that somebody would run my code for weeks/months(?). |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| a 27 digit twin prime pair | enzocreti | enzocreti | 2 | 2019-04-08 15:25 |
| Best Way to find large factors | mahnouman | Information & Answers | 19 | 2013-02-22 06:11 |
| Gigantic Probable Prime Triplet found | Cybertronic | Twin Prime Search | 18 | 2011-08-20 13:36 |
| Search for sexy or octy prime | Joshua2 | Twin Prime Search | 11 | 2009-04-02 12:57 |
| How large a factor can P-1 testing find ? | dsouza123 | Software | 3 | 2003-12-11 00:48 |