![]() |
|
|
#573 | |
|
"Gary"
May 2007
Overland Park, KS
110000000010002 Posts |
Quote:
For versions 4.0.1 and 4.0.2, I sent you a PM with my Email address. |
|
|
|
|
|
|
#574 |
|
"Gary"
May 2007
Overland Park, KS
300816 Posts |
I did confirm the problem is almost exactly with numbers in the range of 1,000,000,000,000 to 1,100,000,000,000. I ran base R3 for k<1M and had fbncsieve stop at exponent 12 instead of 15. It then found hundreds of "composites" that were actually prime in this specific range.
|
|
|
|
|
|
#575 | |
|
"Mark"
Apr 2003
Between here and the
3×2,447 Posts |
Quote:
|
|
|
|
|
|
|
#576 | |
|
Mar 2006
55410 Posts |
Quote:
Here are two primes close to 2^40, the one just under is reported "factored", the one just above is reported prime: Code:
> pfgw64 -tp -q"2^40-87" PFGW Version 4.0.1.64BIT.20191203.Win_Dev [GWNUM 29.8] Primality testing 2^40-87 [N+1, Brillhart-Lehmer-Selfridge] 2^40-87 is factored (0.0018s+0.0009s) ============================================ > pfgw64 -tp -q"2^40+15" PFGW Version 4.0.1.64BIT.20191203.Win_Dev [GWNUM 29.8] Primality testing 2^40+15 [N+1, Brillhart-Lehmer-Selfridge] Running N+1 test using discriminant 3, base 1+sqrt(3) Calling Brillhart-Lehmer-Selfridge with factored part 37.50% 2^40+15 is prime! (0.0118s+0.0013s) |
|
|
|
|
|
|
#577 | |
|
"Rashid Naimi"
Oct 2015
Remote to Here/There
2·11·109 Posts |
Quote:
Code:
PFGW Version 4.0.4.64BIT.20221214.Win_Dev [GWNUM 30.10] ETA: I will check for some known large primes when I get a chance, but that would likely be the weekend. Last fiddled with by a1call on 2023-06-05 at 21:53 |
|
|
|
|
|
|
#578 |
|
Mar 2006
22A16 Posts |
I found the lower bound of this "small prime" problem.
The first misidentified prime is x=999966000317 The last misidentified prime is y=2^40-87 = 1099511627689 The sqrt(x) ~= 999983.000014 So, my current guess is that all numbers less than x are correctly identified since they would have been trial sieved up to 10^6, and the last prime < 10^6 = 10^6-17 = 999983. It seems like something else takes over when numbers are > 2^40, which thinks that smaller numbers were proven prime, by not being factored to 10^6. So, I believe all PFGW 4.0.1-4.0.5 are fine except for this small range between (10^6-17)^2 and 2^40, ie the problem range is 999966000317 - 1099511627689. Numbers outside of this range should be fine. a1call, it is not well understood how the roundoff errors during radix conversion issue in GWNUM, with 30.4 <= GWNUM <= 30.11, affects PRP results in PFGW. GWNUM 30.12 fixed that reported issue. And with: Code:
pfgw 4.0.1 - GWNUM 29.8 pfgw 4.0.2 - GWNUM 29.8 pfgw 4.0.3 - GWNUM 29.8 pfgw 4.0.4 - GWNUM 30.10 pfgw 4.0.5 - GWNUM 30.11 pfgw 4.0.6 - (all prp results are incorrect) |
|
|
|
|
|
#579 |
|
"Rashid Naimi"
Oct 2015
Remote to Here/There
2·11·109 Posts |
Acknowledged with many thanks. The only point of ambiguity for me would be 4.0.3 being not recommended in post 573.
I will run my tests when I can. Again, thank you very much for the heads up.
|
|
|
|
|
|
#580 | |
|
"Gary"
May 2007
Overland Park, KS
23·29·53 Posts |
Quote:
In an Email to me, WraithX also confirmed that 4.0.1 and 4.0.2 have the same problem. I guess they are OK if people know to not run tests on them for 999983^2 < p < 2^40. I will be running 3.7.7 until we know that all problems are resolved. |
|
|
|
|
|
|
#581 |
|
"Rashid Naimi"
Oct 2015
Remote to Here/There
2·11·109 Posts |
Acknowledged with thanks. FTR 4.0.0 has worked for me in the past, and served its purpose.
|
|
|
|
|
|
#582 |
|
"Mark"
Apr 2003
Between here and the
3×2,447 Posts |
I have tracked down and fixed the "40 bit" problem with primality testing. This code was changed over a decade ago and only impact terms less than 40 bits in size. I just had to revert part of those changes. In other words this bug has impacted all releases since 2011, which is when that change was made.
I will release a new build of pfgw once George releases an updated gwnum because it has a bug that causes pfgw to crash. Last fiddled with by rogue on 2023-06-06 at 12:53 |
|
|
|
|
|
#583 | |
|
"Gary"
May 2007
Overland Park, KS
23·29·53 Posts |
Quote:
I wondered why I liked PFGW 3.3.6 from Sept. 2010 so much. I have actually been mostly using that for the last 12+ years for running the CRUS starting bases script and testing other programs. It's what the starting bases script was originally developed from and tested with. I'm sure 3.3.6 is way less efficient in many ways than up-to-date stuff but I was extremely confident that it had no problems. I recently confirmed that it did not have the 40-bit problem. ...pats self on back for finding a difficult-to-find problem. ...kicks self in butt for not finding sooner what should have been an easy-to-find problem with simple parallel tests on various CRUS bases. :-) Last fiddled with by gd_barnes on 2023-06-07 at 04:03 |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A possible bug in LLR/PFGW while using GWNUM (no bug in P95) | Batalov | Software | 77 | 2015-04-14 09:01 |
| PFGW 3.2.0 has been Released | rogue | Software | 94 | 2010-09-14 21:39 |
| PFGW 3.2.3 has been Released | rogue | Software | 10 | 2009-10-28 07:07 |
| PFGW 3.2.1 has been released | rogue | Software | 5 | 2009-08-10 01:43 |
| PFGW 3.1.0 has been Released | rogue | Software | 25 | 2009-07-21 18:13 |