![]() |
A possible bug in LLR/PFGW while using GWNUM (no bug in P95)
[QUOTE=Prime95;385027]Congrats. Try adding PRPBase=n to prime.txt.[/QUOTE]
Hmmm... I added PRPBase=7 to prime.txt and I got that 1024 · 3^1877301 + 1 is a 7-PRP (??). I changed PRPBase=11 in prime.txt and I got that 1024 · 3^1877301 + 1 is a 11-PRP (??). Yet it is a composite by pfgw and llr (or mprime doesn't actually change the base). Though it is likely a 3-PRP (and a 3-SPRP by llr). I am using one worker with 12, 16, 24 threads (27.9, the AVX code is being used). Maybe the multi-threaded code doesn't change the base? |
[QUOTE=Batalov;390093]Maybe the multi-threaded code doesn't change the base?[/QUOTE]
Easy enough to check by applying it on (another) (small) composite number and making sure the residues are all different? |
That's a good idea! Thanks. RES64 values are different!
I've now put PRPBase=5 everywhere. Before [PrimeNet] section, after, and in local.txt, too. ;-) Now, I am thinking, maybe this is after all a prime? Can't be so easily a 7-PRP and a 11-PRP and a 3-PRP and then a composite. Maybe the reason is a devious FFT overflow. |
[QUOTE=Batalov;390097]Now, I am thinking, maybe this is after all a prime? Can't be so easily a 7-PRP and a 11-PRP and a 3-PRP and then a composite.
Maybe the reason is a devious FFT overflow.[/QUOTE] If the latest PFGW still supports it, time to run it with -a1 or -a2 ? |
Yes, I am running that but it will take quite a bit of time.
Another one that I am running (actually times five): llr N-1 with FermatBase=7, 11, 13, 17, 19 (you change it in llr.ini, before the test). What is nice is that with a=11, a different FFT size is chosen. (For a=5 240K, for a=11, 256K.) |
FWIW
[CODE]1024*3^1877301+1 is a probable prime! We4: EC696ADA,00000000[/CODE] This is with [CODE]PRPBase=2[/CODE] Running single thread using P95 v28.5 build 2 Win64 version on a Core-i5 3340M |
My pfgw runs finished. By them, ... it is a prime, after all.
[CODE]PFGW Version 3.7.2.64BIT.20130122.x86_Dev [GWNUM 27.9] Output logging to file pfgw.out Factoring numbers to 1% of normal. Primality testing 1024*3^1877301+1 [N-1, Brillhart-Lehmer-Selfridge] Running N-1 test using base 5 1024*3^1877301+1 is prime! (12398.0381s+0.0164s)[/CODE] This thing is driving me nuts. ;-) There must be some numeric instability in FFT. (Plus many PRP tests in many bases with P95 are positive. The -a2 test is still running...) |
[QUOTE=Batalov;390110]This thing is driving me nuts. ;-) There must be some numeric instability in FFT.[/QUOTE]
Indeed. Over the years, there have been similar instances reported in the forum -- where a positive PRP test was overruled by a proof test. I think in all such cases, we should suspect the proof test, because it is much more probable that an error caused the "composite" result rather than the incredibly rare occurrence of a large pseudoprime. |
This is probably confined to k*b^n+-1 where b>2, especially b=3 (because the default PRP/N-1 test base is 3). Only those who hunt for "non-boring" primes occasionally step into these traps -- this includes people at CRUS.
b=2 is relatively much better debugged - traditional Proth/Riesel which are the mainstream. The prime database is cracking at the seams with these (esp. the b=2, n=1290000). |
How many digits does your problem number have? I ask because [URL="http://primes.utm.edu/primes/page.php?id=118946"]TPP says 895704[/URL], but I get this:
[CODE] ./pfgw64 -od -q"1024*3^1877301+1" PFGW Version 3.7.7.64BIT.20130722.x86_Dev [GWNUM 27.11] 1024*3^1877301+1: 16554132 <SNIP> 818435073[/CODE] [CODE] wc Serge 1 1 895705 Serge [/CODE] ps. I am running your number through a GMP implementation of my algorithm with the GWNUM 27.11 output from pfgw64. |
I ran this using prime95 version 28.5 with AVX but not FMA FFTs. Prime95 chose a 240K FFT size. Round off error was only 0.02. It worked.
My conclusion is the problem is not in choosing an FFT size that is too small. Either a GWNUM bug was fixed between 27.9 and 28.5 or PFGW's PRP code is doing something subtly different than prime95's and either has a bug or reveals a bug in GWNUM. I'm a little confused about what is failing in PFGW. Does PFGW report it as a PRP or is the problem only in the N-1 proving code? |
| All times are UTC. The time now is 13:57. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.