![]() |
|
|
#12 |
|
∂2ω=0
Sep 2002
República de California
101101111011002 Posts |
[By way of cross-referencing]
I just posted details/results for my tests of the F25-F30 cofactors here. Executive Summary: o My Fermat-PRP Res64 values (starting with my saved Pepin-test residues and doing one more mod-squaring) match Yar's, but we need George to tweak his code to also print the Res64 for the ensuing Suyama cofactor-PRP postprocessing step; o Once we have the above added-Res64-print in place, it would be nice if someone could run Fermat-PRP/Suyama for F27 in order to cross-compare that one. Andreas Höglund did a PRP-CF run of F27 already some years ago, but George's code-at-the-time (2009) which Andreas used was doing a direct-PRP-test of the cofactor, whose results cannot be cross-checked against the Pepin+Suyama one. |
|
|
|
|
|
#13 |
|
Einyen
Dec 2003
Denmark
22·863 Posts |
Amazing work Ernst on those cofactor tests specifically the latter ones. You had the patience for those multiyear tests, as well as all the work on MLucas to make it happen.
I assume the "Fermat-PRP/Suyama" test of F27 is a type 5 PRP-CF test? I might run it if no one else does it, but not right now or the next few weeks. Maybe it is better to wait anyway in case George feels like and have time for this "tweak". It sounds from your description like it is a minor change/addition. Last fiddled with by ATH on 2022-05-14 at 02:00 |
|
|
|
|
|
#14 |
|
Banned
"Luigi"
Aug 2002
Team Italia
5×7×139 Posts |
Thank you Ernst. It looks that the original page from Prof. Keller will be updated, once we have all the checks done.
Please keep us informed! |
|
|
|
|
|
#15 | |
|
∂2ω=0
Sep 2002
República de California
267548 Posts |
Quote:
Yes, 'type 5' is the GIMPS jargon - same as type 1, i.e. a Fermat-PRP, a^(N-1) (mod N), but followed by the Suyama-style cofactor-PRP step. The checksum-for-Suyama-result is a more or less trival code-modification, but crucial for cross-validation of cofactor-PRP results. I sent George (and AaronB and JamesH) email a few weeks ago suggesting that the JSON result format for PRP-CF be modified from simply noting 'C' or 'P' for the cofactor to including the Suyama-step Res64 for the 'C' cases, i.e. the vast majority. The preceding much-longer Fermat-PRP test of N could be reported separately, same as a regular PRP, and allowing all the same checks, i.e. Gerbicz and even proof/cert. (It would be really cool to also support upload of Fermat-PRP residues to the server, because that would allow really fast server-side auto-running of the cofactor-PRP step for N where future deeper factoring work turns up a factor.) |
|
|
|
|
|
|
#16 |
|
"Gary Gostin"
Aug 2015
Texas, USA
10100012 Posts |
The Fermat number status page http://www.prothsearch.com/fermat.html compiled by Wilfrid Keller has now been updated to reflect the Fermat cofactor proofs that have been performed over the last several years. During the past month or so, Wilfrid and I collaborated on a study to determine the appropriate updates for the “Factorizations known to be incomplete” and “Largest cofactors known to be composite” sections. For those who might be interested, here is an overview of our investigation.
For each Fermat number and Fermat cofactor from F20 to F30, to determine the earliest prover(s) of compositeness along with the “Proof Strength” that has been achieved by all provers to date, we reviewed the related mersenneforum threads, the Math Comp papers for F20, F22 and F24 primality testing, and the relevant emails from Wilfrid’s extensive email archive. For each early or new-data-providing proof report found, the Who, When, Program, Test Type, and all the Res64 and Selfridge-Hurwitz residues reported were captured in the attached spreadsheet table, organized by Fermat number and then Test Type. We noticed that there was a lot of variation in which residues and how many bits of each residue were reported by different researchers. Additionally, on a few rows the Notes column provides a summary of how the number was tested, including when different hardware and software were used. In the Who (Earliest) column, Bold is used to indicate the earliest compositeness prover found for each Fermat number or Fermat cofactor. To try to categorize how rigorous of a proof of compositeness exists for each Fermat number or Fermat cofactor, a “Proof Strength” column was added. Proof Strength is a credibility grade based on all the proofs performed to date. The grade is determined by the best set of proofs (at least two) run by the same or different researchers producing matching residues. The grades are as follows:
In order to try to match and verify as many of the varied reported residues as possible, I wrote a companion program for mprime/Prime95 named “cofact”. Cofact uses the gwnum library, so does not qualify as “different software” than mprime. Cofact can be run in one of three “modes”:
For F20 – F26, I added the Pepin and Suyama Res64 and SH residues reported by cofact in mode 2 to the spreadsheet table. Above F26, cofact is only about 60% of the speed of mprime, even though it uses the same gwnum library as mprime (mprime is constantly tuning the gwnum algorithms used for best performance). So it is more time efficient to use mprime to generate the proof file with the A residue and then to use cofact in mode 3 to finish the Suyama test and report all the residues. Also, mprime has several advantages over cofact for long runs, including performing Gerbicz error checking and creating periodic checkpoint files to enable resumption after a system crash or power outage. So for F25 – F27 I added the Suyama residues reported by mprime+cofact mode 3 to the table (overlapping F25 – F26 as a cross check), along with placeholders for F28 and F29. So far, all Res64 and SH residues reported by cofact or mprime+cofact match the residues or partial residues reported by other researchers. This is as expected, of course, but good to see anyway. In a few cases, the cofact or mprime+cofact test improved the Proof Strength grade. Here are the grades and a few comments about each of the Fermat numbers and cofactors:
Finally, please let me know if you are aware of any compositeness proofs earlier than the ones reported in the spreadsheet, or if you have additional information on the ones reported. Thanks! |
|
|
|
|
|
#17 |
|
Dec 2022
50710 Posts |
Thank you! Though my e-mail wasn't answered, my concerns have been addressed - no one again will think that F22 needs verification, and proper credit is given to Ernst Mayer for his checking and double-checking the larger cofactors. I'd only suggest that perhaps the table 'Composite ... without known factor' should also have 'Earliest prover' instead of 'prover', for consistency and accuracy: it's so easy to check those again with prime95/mprime that many must have done so (indeed I just did F20 to show this).
I have to correct you on F30: from what I know it, as well as 28 and 29, can and should be verified with prime95/mprime, but AVX-512 is required at that FFT size (otherwise an FFT error similar to that you reported would be expected). It is still, of course, rather a long test even there. Last could you add to this brief definitions of all these terms for the benefit of us that have experience only with prime95 in this context? |
|
|
|
|
|
#18 | ||
|
"Gary Gostin"
Aug 2015
Texas, USA
34 Posts |
Quote:
Interesting point about AVX-512, which none of my systems have. mprime runs fine on the F28 and F29 cofactors on my AVX2 systems, but throws the error I mentioned on F30. Experimenting with Mersenne numbers, it looks like my systems can run 900M but not 960M, so the limit is somewhere between. What is the maximum exponent that the latest mprime supports without and with AVX-512? I poked around in the mprime readme files and on the forum but could not find recent maximums. Let me know which terms need a brief defintion and I can add them. Quote:
Code:
> cofact -upr F25.proof 25 25991531462657 204393464266227713 2170072644496392193 Program to check the primality of a Fermat number and it's cofactor: cofact, Version 0.6 (Jun 2 2023 11:42:45) Run started: Friday 02 June 2023 11:43:59 Command line: cofact -upr F25.proof 25 25991531462657 204393464266227713 2170072644496392193 Reading residue from proof file: F25.proof Proof file description: (F25)/25991531462657/204393464266227713/2170072644496392193 Using A residue from proof file instead of calculating it Skipping the Pepin test Testing the F25 cofactor for primality using the following known factors: 25991531462657 204393464266227713 2170072644496392193 Cofactor is 10100842 digits long A Residue mod 2^64 2^35-1 2^36-1 2^36: 0x7B6B087B84A45562 26994100025 66886679148 49470002530 B Residue mod 2^64 2^35-1 2^36-1 2^36: 0x2909830729BFA110 30348546187 21153567739 30765195536 (A-B) mod C Residue mod 2^64 2^35-1 2^36-1 2^36: 0x7A551893ACF4BE4E 34178045549 65496009072 15786622542 F25 cofactor is composite Run ended: Friday 02 June 2023 11:46:46, Wall time = 0:02:46 (HH:MM:SS) |
||
|
|
|
|
|
#19 | |
|
"Robert Gerbicz"
Oct 2005
Hungary
3·547 Posts |
Quote:
See my method: https://mersenneforum.org/showthread.php?t=23462 ps. Basically this is weaker than a probable prime test, but its error rate is still very small if d is smaller than 2048 bits. |
|
|
|
|
|
|
#20 | |||
|
Dec 2022
3×132 Posts |
Quote:
For help getting access to AVX-512, Ken Kriesel might be the best guy to talk to here. Quote:
Quote:
|
|||
|
|
|
|
|
#21 | |
|
"Gary Gostin"
Aug 2015
Texas, USA
34 Posts |
Quote:
|
|
|
|
|
|
|
#22 |
|
"Catherine"
Mar 2023
Melbourne
678 Posts |
To Gary: thanks very much for cofact! All of my proofs for F17 to F26 (which are uploaded here), agree with the values you posted the day before yesterday (except for F24 which is still running). I’ve attached my results here using the spreadsheet format you provided, which clarifies which version of mprime I was using (30.10 for the most part).
To Andrew: in Prime95 parlance, the Pépin residue is described as type 2 in undoc.txt; I have a set of these residues for F17 up to F23, which also happen to match the values that previous testers in Gary’s spreadsheet had found. The Selfridge-Hurwitz residues were used for error-checking their computations as machine errors were frequent, and converting the last 9 hex digits of RES64 to decimal gives the residue modulo 2^36; apart from that correspondence I don’t think there’s any other matching terminology (I’m sure you must already know this?). To Robert: that’s a very nice trick using the RES2048 residue (or other suitably large residue) – chapeau! |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Search for prime Gaussian-Mersenne norms (and G-M-cofactors) | Cruelty | Proth Prime Search | 158 | 2020-07-31 22:23 |
| Manual Testing ECM on cofactors? | yih117 | PrimeNet | 24 | 2018-02-03 15:46 |
| Feasibility of testing Fermat cofactors | JeppeSN | And now for something completely different | 6 | 2017-02-24 10:17 |
| Testing Mersenne cofactors for primality? | CRGreathouse | Computer Science & Computational Number Theory | 18 | 2013-06-08 19:12 |
| Sequences with smaller cofactors | Mr. Odd | Aliquot Sequences | 8 | 2010-12-01 17:12 |