PrimeGrid
Please visit donation page to help the project cover running costs for this month

Toggle Menu

Join PrimeGrid

Returning Participants

Community

Leader Boards

Results

Other

drummers-lowrise

Advanced search

Message boards : Generalized Fermat Prime Search : Can GFN learn any of LLR2's tricks?

Author Message
Ken_g6Project donor
Volunteer developer
Avatar
Send message
Joined: 4 Jul 06
Posts: 940
ID: 3110
Credit: 261,913,874
RAC: 8,863
Discovered 2 mega primesFound 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 1 prime in the 2021 Tour de PrimesFound 3 primes in the 2022 Tour de PrimesFound 1 prime in the 2023 Tour de Primes321 LLR Ruby: Earned 2,000,000 credits (2,148,133)Cullen LLR Ruby: Earned 2,000,000 credits (2,591,847)ESP LLR Amethyst: Earned 1,000,000 credits (1,657,625)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,251,083)PPS LLR Sapphire: Earned 20,000,000 credits (34,777,138)PSP LLR Turquoise: Earned 5,000,000 credits (6,070,653)SoB LLR Turquoise: Earned 5,000,000 credits (5,923,035)SR5 LLR Ruby: Earned 2,000,000 credits (2,603,308)SGS LLR Ruby: Earned 2,000,000 credits (2,260,651)TPS LLR (retired) Bronze: Earned 10,000 credits (19,376)TRP LLR Ruby: Earned 2,000,000 credits (3,398,689)Woodall LLR Ruby: Earned 2,000,000 credits (2,732,873)321 Sieve (suspended) Ruby: Earned 2,000,000 credits (2,915,071)Cullen/Woodall Sieve Turquoise: Earned 5,000,000 credits (8,584,236)Generalized Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (2,461,309)PPS Sieve Emerald: Earned 50,000,000 credits (97,322,801)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Silver: Earned 100,000 credits (352,129)TRP Sieve (suspended) Gold: Earned 500,000 credits (776,202)AP 26/27 Turquoise: Earned 5,000,000 credits (7,318,658)GFN Emerald: Earned 50,000,000 credits (52,550,171)WW (retired) Sapphire: Earned 20,000,000 credits (20,044,000)PSA Ruby: Earned 2,000,000 credits (4,154,617)
Message 144759 - Posted: 27 Oct 2020 | 1:15:21 UTC

This one might belong in the FAQ if it can't.

Can the current GFN programs be modified to do the things LLR2 can do? Specifically:

    Can a GFN program do Gerbicz checking?
    Can a GFN program save a bunch of data to do fast double-checks later?
    Is the answer different for CPU vs. GPU?



Just curious. It would sure be nice not to have to race to be the first to report a GFN GPU result, though.

Michael MillerickProject donor
Volunteer tester
Send message
Joined: 4 Feb 09
Posts: 938
ID: 35074
Credit: 915,150,317
RAC: 1,436,104
Discovered 3 mega primesEliminated 1 conjecture "k"Found 3 primes in the 2020 Tour de PrimesFound 2 primes in the 2021 Tour de PrimesFound 7 primes in the 2023 Tour de PrimesFound 1 mega prime in the 2023 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (5,068,130)Cullen LLR Turquoise: Earned 5,000,000 credits (5,579,447)ESP LLR Sapphire: Earned 20,000,000 credits (20,186,009)Generalized Cullen/Woodall LLR Emerald: Earned 50,000,000 credits (70,272,330)PPS LLR Sapphire: Earned 20,000,000 credits (35,787,693)PSP LLR Turquoise: Earned 5,000,000 credits (6,047,646)SoB LLR Turquoise: Earned 5,000,000 credits (5,787,781)SR5 LLR Emerald: Earned 50,000,000 credits (55,441,081)SGS LLR Turquoise: Earned 5,000,000 credits (5,117,542)TRP LLR Turquoise: Earned 5,000,000 credits (5,314,541)Woodall LLR Turquoise: Earned 5,000,000 credits (5,529,510)321 Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,440,175)Cullen/Woodall Sieve Sapphire: Earned 20,000,000 credits (29,905,623)Generalized Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (2,077,092)PPS Sieve Emerald: Earned 50,000,000 credits (50,200,870)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,034,014)TRP Sieve (suspended) Ruby: Earned 2,000,000 credits (2,070,774)AP 26/27 Emerald: Earned 50,000,000 credits (50,449,372)GFN Double Silver: Earned 200,000,000 credits (250,973,880)WW (retired) Double Silver: Earned 200,000,000 credits (250,000,000)PSA Emerald: Earned 50,000,000 credits (52,866,806)
Message 144765 - Posted: 27 Oct 2020 | 6:34:44 UTC

I remember reading the answers to some of this in the Discord, but couldn't find them later when I wanted to read the messages again. I'm looking forward to seeing the answers again.
____________

Yves GallotProject donor
Volunteer developer
Project scientist
Send message
Joined: 19 Aug 12
Posts: 820
ID: 164101
Credit: 305,989,513
RAC: 1,728
GFN Double Silver: Earned 200,000,000 credits (305,989,513)
Message 144766 - Posted: 27 Oct 2020 | 9:08:31 UTC - in response to Message 144759.

Can the current GFN programs be modified to do the things LLR2 can do? Specifically:
Can a GFN program do Gerbicz checking?

Yes and the implementation was tested.
The new program is slower: with Proth numbers, Gerbicz checking is as fast as 'no checking' because of the base 2. If c = ak then c2n can be computed with a sequence of squares but the computation of 2bN requires also some multiplications with Gerbicz check. Without Gerbicz check, the exponentiation can be computed with a left-to-right binary algorithm and no full multiplication is necessary just some duplicates (what genefer is doing).

Gerbicz check is already implemented in genefer20. This program was used to test the range b in [2; 2G] for n = 10 and 11: https://www.primegrid.com/forum_thread.php?id=9046&nowrap=true#144155. But today this program is dedicated to "small" GFNs and tests a vector of GFNs, which is faster than a single test on GPU.
genefer20 will be extended to large n and a single test for PrimeGrid ranges. The new program will be slower but because one WU will be one test and one validation rather than two tests, the whole test will be faster.

Can a GFN program save a bunch of data to do fast double-checks later?

Yes, Pavel's algorithm is an extension of Gerbicz checking that can be implemented in any program. A good approach is to write a PrimeGrid library for the test of large prime numbers. This API will encapsulate BOINC, Gerbicz and Pavel's methods and maybe other top level functions. Then LLR2 can be written with GWNUM, genefer20 with its CPU/GPU transforms and Proth20 with its GPU implementation and all of them be linked to this library. Therefore, files and inputs/outputs with PrimeGrid server are unified (and LLR2 can validate genefer20 or Proth20 can validate LLR2, ...).

Is the answer different for CPU vs. GPU?

No, CPU and GPU are two different low-level implementations but the main program is identical.

Ken_g6Project donor
Volunteer developer
Avatar
Send message
Joined: 4 Jul 06
Posts: 940
ID: 3110
Credit: 261,913,874
RAC: 8,863
Discovered 2 mega primesFound 2 primes in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 1 prime in the 2021 Tour de PrimesFound 3 primes in the 2022 Tour de PrimesFound 1 prime in the 2023 Tour de Primes321 LLR Ruby: Earned 2,000,000 credits (2,148,133)Cullen LLR Ruby: Earned 2,000,000 credits (2,591,847)ESP LLR Amethyst: Earned 1,000,000 credits (1,657,625)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,251,083)PPS LLR Sapphire: Earned 20,000,000 credits (34,777,138)PSP LLR Turquoise: Earned 5,000,000 credits (6,070,653)SoB LLR Turquoise: Earned 5,000,000 credits (5,923,035)SR5 LLR Ruby: Earned 2,000,000 credits (2,603,308)SGS LLR Ruby: Earned 2,000,000 credits (2,260,651)TPS LLR (retired) Bronze: Earned 10,000 credits (19,376)TRP LLR Ruby: Earned 2,000,000 credits (3,398,689)Woodall LLR Ruby: Earned 2,000,000 credits (2,732,873)321 Sieve (suspended) Ruby: Earned 2,000,000 credits (2,915,071)Cullen/Woodall Sieve Turquoise: Earned 5,000,000 credits (8,584,236)Generalized Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (2,461,309)PPS Sieve Emerald: Earned 50,000,000 credits (97,322,801)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Silver: Earned 100,000 credits (352,129)TRP Sieve (suspended) Gold: Earned 500,000 credits (776,202)AP 26/27 Turquoise: Earned 5,000,000 credits (7,318,658)GFN Emerald: Earned 50,000,000 credits (52,550,171)WW (retired) Sapphire: Earned 20,000,000 credits (20,044,000)PSA Ruby: Earned 2,000,000 credits (4,154,617)
Message 144775 - Posted: 27 Oct 2020 | 14:51:31 UTC - in response to Message 144766.

Very informative. Thank you! For the explanation as well as all the work!

Profile BurProject donor
Volunteer tester
Avatar
Send message
Joined: 25 Feb 20
Posts: 515
ID: 1241833
Credit: 414,499,467
RAC: 1,781
321 LLR Ruby: Earned 2,000,000 credits (2,092,823)Cullen LLR Ruby: Earned 2,000,000 credits (2,315,295)ESP LLR Ruby: Earned 2,000,000 credits (2,151,088)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,620,968)PPS LLR Jade: Earned 10,000,000 credits (16,486,037)PSP LLR Ruby: Earned 2,000,000 credits (2,064,832)SoB LLR Ruby: Earned 2,000,000 credits (2,434,466)SR5 LLR Ruby: Earned 2,000,000 credits (2,065,004)SGS LLR Ruby: Earned 2,000,000 credits (2,042,656)TRP LLR Ruby: Earned 2,000,000 credits (2,089,856)Woodall LLR Ruby: Earned 2,000,000 credits (2,112,258)321 Sieve (suspended) Ruby: Earned 2,000,000 credits (2,107,153)PPS Sieve Turquoise: Earned 5,000,000 credits (5,096,952)AP 26/27 Turquoise: Earned 5,000,000 credits (5,797,662)GFN Jade: Earned 10,000,000 credits (12,000,704)WW (retired) Double Silver: Earned 200,000,000 credits (349,980,000)PSA Amethyst: Earned 1,000,000 credits (1,042,601)
Message 144823 - Posted: 29 Oct 2020 | 18:58:37 UTC - in response to Message 144766.

Maybe I'm a bit slow, but does that mean that Gerbicz checking is so slow with GFN that in total it's slower than doing a DC task, i.e. twice as slow?

If not, can we expect GFN tasks with certificate-style DC'ing?
____________
1281979 * 2^485014 + 1 is prime ... no further hits up to: n = 5,700,000

Message boards : Generalized Fermat Prime Search : Can GFN learn any of LLR2's tricks?

[Return to PrimeGrid main page]
DNS Powered by DNSEXIT.COM
Copyright © 2005 - 2023 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 1.43, 1.21, 1.42
Generated 7 Jun 2023 | 3:25:22 UTC