![]() |
![]() |
#23 |
"Robert Gerbicz"
Oct 2005
Hungary
25×72 Posts |
![]() |
![]() |
![]() |
#24 | |
Sep 2003
5·11·47 Posts |
![]() Quote:
Code:
#! /usr/bin/python3 import fileinput with fileinput.input() as f: for line in f: p, f = line.strip().split(",", maxsplit=2) p = int(p) f = int(f) if (f - 1) % (2*p) != 0: print ("UNEXPECTED FORM: ", p, f) What can we say for the general case of k × bn + c ? Which values for the constants k, b, c let us do P−1 testing more effectively in the source code of mprime/Prime95? |
|
![]() |
![]() |
#25 | |
Jun 2003
5·29·37 Posts |
![]() Quote:
|
|
![]() |
![]() |
#26 | |
Sep 2006
The Netherlands
14168 Posts |
![]() Quote:
Let's first focus upon the reality. that's that in the GIMPS project most people wanted a chance to find a prime. So they wanted to TEST rather than TF and initially there wasn't a gpgpu version of TF. They simply didn't do a very deep TF initially for Mersenne. It was just so so. Additionally Wagstaff TF's much better than Mersenne. so you keep left with a far smaller percentage of numbers to test for PRP than to LL. TF simply is more effective in that sense for Wagstaff. So there is a number of things that make this plausible: a) there is a smaller percentage of numbers left with wagstaff after TF than with mersenne. b) nowadays the TF is far far far deeper than years ago with Mersenne c) Mersenne is at dozens of millions of bits, Wagstaff still is at 10+ million bits. d) we divide by 3 so it's not a +1 number of bits. It's a -1 number of bits. It's especially B. the mersenne project has been pretty lazy in that respect. Everyone wanted a chance to find a prime. So they started testing long before a good TF had been done. Last fiddled with by diep on 2018-07-25 at 10:44 |
|
![]() |
![]() |
#27 |
Sep 2006
The Netherlands
2×17×23 Posts |
![]()
Let me focus upon argument D as this is the thing most researchers seem to forget.
x = 2^p + 1; We first divide a number length len = prime p number of bits We divide it by 3. If we take p = 5 2^5 + 1 = 33 = 0b100001 bits = 6 bits we divide it by 3 ==> 33 / 3 = 11 = 0b1011 = 4 bits So we want a prime of 4 bits which is p-1 bits. That's a lot of constraints we want to find a prime. Last fiddled with by diep on 2018-07-25 at 10:57 |
![]() |
![]() |
#28 | ||||
Jun 2003
5×29×37 Posts |
![]()
What alternative? P-1 is a complementary method to TF, not an alternative. And ECM is not cost competitive with P-1. What other alternative is there?
Quote:
Quote:
Quote:
Quote:
Not sure I understand. What do you mean by this? |
||||
![]() |
![]() |
#29 |
"Robert Gerbicz"
Oct 2005
Hungary
25×72 Posts |
![]()
Not likely, because when you'd divide by 3 you'd already know 2^p+1, right?
Last fiddled with by R. Gerbicz on 2018-07-25 at 11:12 |
![]() |
![]() |
#30 |
Sep 2006
The Netherlands
30E16 Posts |
![]()
>> Originally Posted by diep View Post
>>a) there is a smaller percentage of numbers left with wagstaff after TF than with >>mersenne. > I don't know why this should be so... but I'll take your word for it. However this has > no relevance as to whether doing P-1 after TF is worthwhile. Sir, if you do not understand this one, i propose that you first study this one in depth first before claiming it doesn't matter. |
![]() |
![]() |
#31 |
Sep 2006
The Netherlands
14168 Posts |
![]()
Originally Posted by diep View Post
>> b) nowadays the TF is far far far deeper than years ago with Mersenne > Due to GPU-TF. If Wagstaff's have also been similarly deeply TF'ed with GPUs, then the P-1 breakeven point would shift It is a very silly assumption to assume you will not be using some massive gpu's to TF. The amount of system time to factor with a silly algorithm like P-1 provable is nonsense except if you can do that on hardware that wouldn't be used for PRP-testing otherwise. GPU's are so much faster than the hardware most have to do PRP-testing, it's just not even funny to compare the 2. |
![]() |
![]() |
#32 |
Sep 2006
The Netherlands
2·17·23 Posts |
![]()
Originally Posted by diep View Post
>> Oh it does compared to the alternatives. > What alternative? P-1 is a complementary method to TF, not an alternative. And ECM is not cost competitive with P-1. What other alternative is there? You get what you pay for. |
![]() |
![]() |
#33 |
Sep 2006
The Netherlands
2×17×23 Posts |
![]()
>> d) we divide by 3 so it's not a +1 number of bits. It's a -1 number of bits.
> Not sure I understand. What do you mean by this? Wagstaff is a much harder beast than Mersenne. |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Testing Mersenne Primes with Elliptic Curves | a nicol | Math | 3 | 2017-11-15 20:23 |
New Wagstaff PRP exponents | ryanp | Wagstaff PRP Search | 26 | 2013-10-18 01:33 |
Hot tuna! -- a p75 and a p79 by Sam Wagstaff! | Batalov | GMP-ECM | 9 | 2012-08-24 10:26 |
Statistical odds for prime in Wagstaff vs Mersenne | diep | Math | 27 | 2010-01-13 20:18 |
Speed of P-1 testing vs. Trial Factoring testing | eepiccolo | Math | 6 | 2006-03-28 20:53 |