mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2022-12-07, 22:31   #12
R. Gerbicz
 
R. Gerbicz's Avatar
 
"Robert Gerbicz"
Oct 2005
Hungary

3×547 Posts
Default

Quote:
Originally Posted by JeppeSN View Post
As far as I understand Pavel Atnashev who made LLR2, it can do a test of such numbers (c ≠ ±1), even with Gerbicz hardware error check
Clearly a bug, the algorithm is more than perfect.
R. Gerbicz is offline   Reply With Quote
Old 2022-12-08, 05:01   #13
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

17·487 Posts
Default

Quote:
Originally Posted by MischaR View Post
I'm told one of the differences is the version of gwnum, with the older apps using 29.8 and LLR2 1.3.0 using 30.9
A couple of things going on.

First, there was a bug that has been there forever. The routine gwsetaddin does not work with numbers of the form 1*b^n+c using zero-padded FFTs. I guess no one used this routine. I've fixed this bug (except in the x87 code path).

Second, the new routines gwmuladd4 and gwmulsub4 introduced in version 30.4 had problems with zero-padded FFTs. This wasn't much of an issue until gwsquare_carefully and gwmul_carefully switched to using these new routines in version 30.5. This bug has been fixed. I'll put these fixes into a new version 30.10.
Prime95 is offline   Reply With Quote
Old 2022-12-08, 15:13   #14
pepi37
 
pepi37's Avatar
 
Dec 2011
After 1.58M nines:)

32438 Posts
Default

Quote:
Originally Posted by Prime95 View Post
A couple of things going on.

First, there was a bug that has been there forever. The routine gwsetaddin does not work with numbers of the form 1*b^n+c using zero-padded FFTs. I guess no one used this routine. I've fixed this bug (except in the x87 code path).

Second, the new routines gwmuladd4 and gwmulsub4 introduced in version 30.4 had problems with zero-padded FFTs. This wasn't much of an issue until gwsquare_carefully and gwmul_carefully switched to using these new routines in version 30.5. This bug has been fixed. I'll put these fixes into a new version 30.10.
And if you can add

https://mersenneforum.org/showpost.php?p=616316&postcount=757
pepi37 is online now   Reply With Quote
Old 2023-02-04, 10:51   #15
JeppeSN
 
JeppeSN's Avatar
 
"Jeppe"
Jan 2016
Denmark

191 Posts
Default

Quote:
Originally Posted by Prime95 View Post
A couple of things going on.

First, there was a bug that has been there forever. The routine gwsetaddin does not work with numbers of the form 1*b^n+c using zero-padded FFTs. I guess no one used this routine. I've fixed this bug (except in the x87 code path).

Second, the new routines gwmuladd4 and gwmulsub4 introduced in version 30.4 had problems with zero-padded FFTs. This wasn't much of an issue until gwsquare_carefully and gwmul_carefully switched to using these new routines in version 30.5. This bug has been fixed. I'll put these fixes into a new version 30.10.
It was also found that numbers like 1385084*391^3437-1 and 1385270*391^2588-1 can be incorrectly reported as "not prime" by LLR2:
Code:
1385084*391^3437-1 is not prime, although Fermat PSP! P = 3, Lucas RES64: CF91244F7FB614D5  Time : 1.384 sec.
1385270*391^2588-1 is not prime, although Fermat PSP! P = 6, Lucas RES64: 90668F73899D0060  Time : 793.228 ms.
Using switch -oForceGeneric=1 says prime, as expected. patnashev will report this bug of gwnum.
JeppeSN is offline   Reply With Quote
Old 2023-02-11, 06:48   #16
bur
 
bur's Avatar
 
Aug 2020
79*6581e-4;3*2539e-3

73010 Posts
Default

Can bugs like these be detected by Gerbicz error checking? For the two provided numbers it obviously did not happen, but maybe the base is the problem or the size?

And it made me wonder, how probable is it that undetected bugs are present in LLR2 or prime95 causing primes to be overlooked? For good reason detected primes are double-checked by other software, but not so for composites.
bur is offline   Reply With Quote
Old 2023-02-11, 08:24   #17
rebirther
 
rebirther's Avatar
 
Sep 2011
Germany

5·7·103 Posts
Default

Quote:
Originally Posted by bur View Post
Can bugs like these be detected by Gerbicz error checking? For the two provided numbers it obviously did not happen, but maybe the base is the problem or the size?

And it made me wonder, how probable is it that undetected bugs are present in LLR2 or prime95 causing primes to be overlooked? For good reason detected primes are double-checked by other software, but not so for composites.
The current bug is not affected while using Gerbicz error checking. with llr2.
rebirther is offline   Reply With Quote
Old 2023-02-11, 08:55   #18
Jean Penné
 
Jean Penné's Avatar
 
May 2004
FRANCE

24·3·13 Posts
Default

Quote:
Originally Posted by JeppeSN View Post
It was also found that numbers like 1385084*391^3437-1 and 1385270*391^2588-1 can be incorrectly reported as "not prime" by LLR2:
Code:
1385084*391^3437-1 is not prime, although Fermat PSP! P = 3, Lucas RES64: CF91244F7FB614D5  Time : 1.384 sec.
1385270*391^2588-1 is not prime, although Fermat PSP! P = 6, Lucas RES64: 90668F73899D0060  Time : 793.228 ms.
Using switch -oForceGeneric=1 says prime, as expected. patnashev will report this bug of gwnum.
Exactly the same behavior with LLR V4.0.3
Jean
Jean Penné is online now   Reply With Quote
Old 2023-02-13, 19:31   #19
bur
 
bur's Avatar
 
Aug 2020
79*6581e-4;3*2539e-3

2DA16 Posts
Default

Quote:
Originally Posted by rebirther View Post
The current bug is not affected while using Gerbicz error checking. with llr2.
I thought Gerbicz error checking was automatically used with LLR2, isn't it? When just running ./sllr2 -d -q"1385084*391^3437-1" I get the same output as posted by Jeppe.

Or did I get you wrong?

I noted it is the same with LLR2 1.1.1 - so it's generally not found prime by any LLR?


edit: And yet another question, sorry. Does this mean it's possible to have missed some base-2 Proth primes? Or is it apparently only affecting specific types of numbers?

Last fiddled with by bur on 2023-02-13 at 19:34
bur is offline   Reply With Quote
Old 2023-02-13, 19:37   #20
rebirther
 
rebirther's Avatar
 
Sep 2011
Germany

5×7×103 Posts
Default

Quote:
Originally Posted by bur View Post
I thought Gerbicz error checking was automatically used with LLR2, isn't it? When just running ./sllr2 -d -q"1385084*391^3437-1" I get the same output as posted by Jeppe.

Or did I get you wrong?

I noted it is the same with LLR2 1.1.1 - so it's generally not found prime by any LLR?


edit: And yet another question, sorry. Does this mean it's possible to have missed some base-2 Proth primes? Or is it apparently only affecting specific types of numbers?
no, Gerbiczcheck is not automatically, you must add -oGerbicz=1 to commandline
rebirther is offline   Reply With Quote
Old 2023-02-14, 14:55   #21
bur
 
bur's Avatar
 
Aug 2020
79*6581e-4;3*2539e-3

2·5·73 Posts
Default

I checked and Gerbicz is used automatically for Proth numbers. Anyway, from the output it looks like it's not that Gerbicz detects the error, but simply because when Gerbicz is enabled, then LLR2 only performs a PRP test - unless the candidate is a Proth number - and that PRP test is successful either way (see non-Gerbicz output):

Code:
$ ./sllr2 -v && ./sllr2 -d -q"1385084*391^3437-1" -oGerbicz=1
LLR2 Program - Version 1.1.1, using Gwnum Library Version 30.4
Gerbicz check is requested, switching to PRP.
Starting probable prime test of 1385084*391^3437-1
Using zero-padded FMA3 FFT length 4K, a = 3, L2 = 15*14
1385084*391^3437-1, bit: 1156 / 3437 [33.63%], 1050 checked.  Time per bit: 0.23
1385084*391^3437-1, bit: 2311 / 3437 [67.23%], 2310 checked.  Time per bit: 0.23

1385084*391^3437-1 is base 3-Fermat PRP! (8916 decimal digits)  Time : 829.397 ms.
(Factorized part = 99.93%)
Candidate saved in file t1748697.in for further test with Primo.


Another thing, I ran LLR2 1.1.1 on two different systems and got different results.

i9-10920x
Code:
$ ./sllr2 -v && ./sllr2 -d -q"1385084*391^3437-1"
LLR2 Program - Version 1.1.1, using Gwnum Library Version 30.4
Base factorized as : 17*23
Base prime factor(s) taken : 23
Starting N+1 prime test of 1385084*391^3437-1
Using zero-padded AVX-512 FFT length 4608, a = 3

1385084*391^3437-1 may be prime. Starting Lucas sequence...
Using zero-padded AVX-512 FFT length 4608, P = 3

1385084*391^3437-1 may be prime, trying to compute gcd's
U((N+1)/23) is coprime to N!

1385084*391^3437-1 is prime! (8916 decimal digits, P = 3)  Time : 1.030 sec.
Ryzen 9 3900x
Code:
$ ./sllr2 -v && ./sllr2 -d -q"1385084*391^3437-1"
LLR2 Program - Version 1.1.1, using Gwnum Library Version 30.4
Base factorized as : 17*23
Base prime factor(s) taken : 23
Starting N+1 prime test of 1385084*391^3437-1
Using zero-padded FMA3 FFT length 4K, a = 3

1385084*391^3437-1 may be prime. Starting Lucas sequence...
Using zero-padded FMA3 FFT length 4K, P = 3

1385084*391^3437-1 is not prime, although Fermat PSP! P = 3, Lucas RES64: CF91244F7FB614D5  Time : 1.558 sec.
So the bug is only affecting FMA3 FFT?

Last fiddled with by bur on 2023-02-14 at 14:56
bur is offline   Reply With Quote
Old 2023-02-14, 15:50   #22
rebirther
 
rebirther's Avatar
 
Sep 2011
Germany

1110000101012 Posts
Default

You are using an older llr2 app, try the latest
https://github.com/patnashev/llr2/releases

If you only running llr2 use Gerbicz check or take an older llr version with gwnum 29.x, the current gwnum has some bugs.
rebirther is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference in residue LLR4.0 vs LLR2 1.1.1 diep Software 7 2021-10-22 22:46
inconsistencies between results.txt and results.json.txt ixfd64 Software 3 2021-07-17 08:32
Statistical properties of categories of GIMPS results and interim results kriesel Probability & Probabilistic Number Theory 1 2019-05-22 22:59
Where have all the TF results gone?... lycorn PrimeNet 22 2017-10-02 02:40
0x results... Mike PrimeNet 11 2004-05-23 12:55

All times are UTC. The time now is 13:59.


Fri Jul 7 13:59:13 UTC 2023 up 323 days, 11:27, 0 users, load averages: 1.22, 1.19, 1.17

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔