![]() |
|
|
#12 | |
|
"Bob Silverman"
Nov 2003
North of Boston
5·17·89 Posts |
Quote:
But I saw none of that here. The OP received honest, reasonable replies. |
|
|
|
|
|
|
#13 |
|
Oct 2014
2 Posts |
I did try this program. Got the basic idea then the computer died. Good stress test. Lol.
OP said he had a specific number. Second person said put it in prime95. How do I put a specific number in? I'm looking at playing with 6^n +/- 1 Is there a way to put a certain number of that form or can I manipulate the programs search to leave the 2^n and just use 6^n Thank you |
|
|
|
|
|
#14 |
|
Romulan Interpreter
"name field"
Jun 2011
Thailand
41×251 Posts |
Don't need to bother with 6^n-1, that is always divisible by 5. (why?)
|
|
|
|
|
|
#15 |
|
"Serge"
Mar 2008
San Diego, Calif.
32×7×163 Posts |
Don't need to bother with 6^n+1, either. It can only be prime when n=2^m (for bonus points, -- why?)
And even then, after the first three primes (7, 37 and 1297), probabilistically, -- never. See http://www.prothsearch.net/GFN06.html P.S. But you can search for factors of these. You will be in an awesome company, too! Look: H.Riesel, W.Keller, H.Dubner, and many other interesting people. One tool for that is mmff-gfn (on a GPU) and there are other programs. Last fiddled with by Batalov on 2014-10-08 at 16:43 Reason: P.S. |
|
|
|
|
|
#16 |
|
"Brian"
Jul 2007
The Netherlands
1100110011102 Posts |
And in general, unless I'm mistaken, prime95 is specifically designed, written, and highly optimised, for testing the primality of numbers of the form 2^n-1 and cannot be used for other numbers.
|
|
|
|
|
|
#17 |
|
Jun 2003
125308 Posts |
Correct, as far as primality tests go. But it can do a PRP-test on a much larger set of numbers, (k*b^n+/-c)/f
|
|
|
|
|
|
#18 |
|
"Brian"
Jul 2007
The Netherlands
2×11×149 Posts |
|
|
|
|
|
|
#19 | |
|
Oct 2014
2 Posts |
Quote:
Thank you. I'll look that up. I know 6^n-1 is always a product of 5 but wanted to play with numbers like 6^n - 6^n-1 - 6^n-2..... -6^0 I've got a working sieve for elimination of all composite numbers and wanted to run tests against it. |
|
|
|
|
|
|
#20 | |
|
"Serge"
Mar 2008
San Diego, Calif.
32×7×163 Posts |
Quote:
You don't need to reinvent the wheel for a sieve for this form either, because it is easily simplified: 6^n - 6^n-1 - 6^n-2..... -6^0 = 6^n - (6^n-1)/5 = (4*6^n+1)/5 for which srsieve package will be vastly faster than any sieve you can write. You need to sieve with "-pmin 7" (and then remove n=1(mod 5) because these are divisible by 5^k with k>1; except the only prime divisible by 5 at n=1, which is 5); and additionally remove all n=0 (mod 4) because of the Aurifeuillian factorization: (4*6^4m+1)/5 = (2 * 6^2m + 2*6^m + 1)/5 * (2 * 6^2m - 2 * 6^m + 1). And then you will find some PRPs with pfgw. Here is how they will start: Code:
(4*6^1+1)/5 is prime (4*6^2+1)/5 is prime (4*6^3+1)/5 is prime (4*6^5+1)/5 is prime Switching to Exponentiating using GMP (4*6^15+1)/5 is 3-PRP! (0.0000s+0.0001s) (4*6^25+1)/5 is 3-PRP! (0.0000s+0.0014s) (4*6^29+1)/5 is 3-PRP! (0.0000s+0.0011s) (4*6^73+1)/5 is 3-PRP! (0.0000s+0.0000s) (4*6^90+1)/5 is 3-PRP! (0.0000s+0.0000s) (4*6^139+1)/5 is 3-PRP! (0.0001s+0.0000s) (4*6^194+1)/5 is 3-PRP! (0.0001s+0.0000s) Switching to Exponentiating using Woltman FFT's (4*6^242+1)/5 is 3-PRP! (0.0016s+0.0000s) (4*6^939+1)/5 is 3-PRP! (0.0161s+0.0000s) (4*6^3518+1)/5 is 3-PRP! (0.2101s+0.0000s) (4*6^3963+1)/5 is 3-PRP! (0.2434s+0.0001s) (4*6^4694+1)/5 is 3-PRP! (0.3930s+0.0000s) (4*6^5570+1)/5 is 3-PRP! (0.5256s+0.0001s) (4*6^5615+1)/5 is 3-PRP! (0.5309s+0.0000s) (4*6^6702+1)/5 is 3-PRP! (0.8243s+0.0000s) (4*6^13962+1)/5 is 3-PRP! (3.8427s+0.0001s) (4*6^14269+1)/5 is 3-PRP! (3.9239s+0.0001s) (4*6^16339+1)/5 is 3-PRP! (4.6013s+0.0001s) (4*6^16882+1)/5 is 3-PRP! (5.0966s+0.0001s) ... All of these you can prove with Primo, but the larger ones will become unfeasible to prove, so the best place they will go to will be the PRP Top. The new PRP Top cutoff to enter is 20,000 decimal digits, so you'd need n>25702... Code:
(4*6^22582+1)/5 is 3-PRP! (7.0355s+0.0001s) (4*6^31415+1)/5 is 3-PRP! (13.1867s+0.0002s) (4*6^105554+1)/5 is 3-PRP! (183.1141s+0.0005s) (82137 digits) (4*6^120749+1)/5 is 3-PRP! (218.7588s+0.0006s) (93961 digits) ... Last fiddled with by Batalov on 2014-10-11 at 02:46 Reason: ...13962 ...14269 ...16339 ...120749 ...OEIS |
|
|
|
|
|
|
#21 | |
|
"Jason Goatcher"
Mar 2005
3·7·167 Posts |
Quote:
It's the internet, the masks come off, and people, including myself, are revealed as their true selves. |
|
|
|
|
|
|
#22 | |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
6,793 Posts |
Quote:
|
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Test a Specific Exponent in Prime95. When it is 100% done, does it mean I find a new prime number? | king | Information & Answers | 5 | 2018-02-21 18:15 |
| probable largest prime. | sudaprime | Miscellaneous Math | 11 | 2018-02-05 08:10 |
| Miller-Rabin Strong Probable Prime Test (SPRP) | fenderbender | Miscellaneous Math | 22 | 2010-11-11 01:04 |
| Fourth probable prime found, one to go! | philmoore | Five or Bust - The Dual Sierpinski Problem | 22 | 2010-01-01 00:23 |
| Another record probable prime found! | philmoore | Five or Bust - The Dual Sierpinski Problem | 15 | 2009-02-08 19:43 |