mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > FermatSearch

Reply
 
Thread Tools
Old 2023-06-03, 12:47   #23
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

7,823 Posts
Default

Quote:
Originally Posted by Gary View Post
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.
In the reference info compilation, there's a post for mprime/prime95 exponent limits. Inspecting the source code can give the exact limits versus instruction set. And there's a lengthy post about limits and considerations for large exponents, of multiple applications. Mlucas may suit your hardware better.
kriesel is offline   Reply With Quote
Old 2023-06-04, 01:26   #24
cxc
 
cxc's Avatar
 
"Catherine"
Mar 2023
Melbourne

678 Posts
Default

Compilation note for cofact 0.6:
Gary’s code assumes an older version of gwnum (29.8), so if you have the gwnum included in the p95v30.8 source (as I did) then there are two modifications required, at lines 387 and 436 of cofact.c:
Code:
gwsquare2 (&gwdata, r_gw, r_gw, 0);
For Ken: although Mlucas may handle F30 better, one of the requirements for the “A+” level of certainty is using different software with different maths libraries to obtain the same result, hence investigating Prime95/mprime rather than Mlucas.
cxc is offline   Reply With Quote
Old 2023-06-30, 02:29   #25
cxc
 
cxc's Avatar
 
"Catherine"
Mar 2023
Melbourne

5·11 Posts
Default Chronology of examining Fermat numbers or cofactors for compositeness

I have a question … (and one other, very trivial bug fix for cofact 0.6)

For those who would prefer to TL,DR the question is, who was doing cofactor compositeness tests in the 80s?

As for the bug, see below.

After seeing that there was a new factor, I noticed Professor Keller’s Fermat factor page has dropped the information about provers of the composite cofactors of F12 to F19, now that it’s showing up to F30 — and all due credit to him for recognising the epic work done by Ernst W. Mayer. And previously, it had simply described the provers for the c1133 | F12, c4880 | F14, c39395 | F17, and c157770 | F19 cofactors as being anonymous, when it seems even a minimal amount of effort could have furnished at least one name, for each of these, if not more:

c1133 | F12: M. Vang, S. Batalov, et al.
c4880 | F14: W. B. Lipp, R. D. Silverman, and T. Rajala
c39395 | F17: D. Chia and T. Sorbera (and possibly A. Höglund?)
c157770 | F19: A. Kruppa (as well as ‘J. R. K.’)

L. Morelli still has the full list at http://www.fermatsearch.org/factors/composite.php but “Different anonymous provers” “Various different provers” etc. etc. for the provers of these four cofactors.

Feeling slightly unsatisfied, I poked around in the literature a bit to dig up the historical Pépin tests (from Morehead and Western onward) to see how often these compositeness tests were done in light of a new factor discovery, and to examine the chronology:

Pre-computers:
1905: F7 is composite, no factors known (Morehead and Western, independently!)
1909: F8 is composite, ditto (Morehead and Western together, splitting the effort between them)

Start of the computer age:
1952: F10 is composite, no factors known yet (Robinson on SWAC, also confirming F7 and F8 were done correctly without computers)
1960: F13 is composite, ditto (Paxson, also confirming F7, F8, and F10)
1961: F14 ditto (Hurwitz and Selfridge, confirming F7, F8, F10, and F13, and publishing S–H residue triplets for each of these except F10 in their 1964 paper)

1967: c148 | F9 & c291 | F10 cofactors are composite (Brillhart – see the 1975 Hallyburton & Brillhart paper announcing a new factor for F12 and the first for F13)

ca. 1978?–79: c606 | F11, c1202 | F12, & c2454 | F13 are composite (Wagstaff – see Gostin’s 1980 paper on F17)

1984: c9856 | F15 is composite (Suyama – but it is very difficult to get this abstract, or Suyama’s later one)
1986: c1187 | F12 (Baillie, after finding the 5th factor, but did not find a citation)
1987: c9840 | F15 (Suyama again, but even more difficult than his previous to find information on this result)
1987: c39444 | F17 (also Baillie, again did not find a citation)
1987: F20 is composite (Young & Buell)

...
So by 1992, Lenstra, Manasse et al. report the following cofactors to be composite in their F9 factorisation paper, but without attribution:
c291 | F10 (Brillhart); c1187 | F12 (Baillie); c2417| F13 (?); c9840 | F15 (Suyama?); c19720 | F16 (?); c39444 | F17 (Baillie?); c78907 | F18 (?)
...

1993: c157804 | F19, c631306 | F21, & F22 are composite (Crandall, Doenias, Norrie & Young, who also provide S–H triplets for Pépin tests on each of the eighteen composite Fermat numbers F5F22)
1993: F22 is composite (Trevisan & Carvalho obtain same result, independently of CDNY)
1995: c2391 | F13 is composite (Brent)
1995: c19694 | F16 is composite (Brent & Crandall – not Brent alone. Their 2000 paper is clear they tested independently, to verify one another’s results: “using different programs on different machines in different continents”! They also cite compositeness of the previous cofactors without attribution.)
1997: c9808 | F15 (Brent & Crandall likewise)
1999: c78884 | F18 (Crandall)
1999: F24 is composite (Crandall, Mayer & Papadopoulos)
2000: c2525215 | F23 (also Crandall, Mayer & Papadopoulos)

And then we reach the GIMPS era, already covered.

So there were at least three question marks and several other assumptions in-between Brillhart 1967/1975 and the CDNY paper on F22 in 1993. It doesn’t entirely surprise me that these are mostly around the 1980s (in other fields it can be really awkward to search in the pre-digitisation era), even though this is living memory for a lot of people.

So looking at the question marks:

c2417 was the then-known cofactor after Crandall had found 2 factors of F13 in 1991. Surely he would have tested it for compositeness? And if not him, then someone like Brent who he collaborated with?

c19720 | F16 and c78907 | F18 had had one factor discovered before, by Selfridge in 1953 and Western circa 1903 respectively. Would Suyama have checked these cofactors after having looked at c9856 | F15 in 1984 (and again)?

Yes, I totally realise these cofactor compositeness results are highly ephemeral, that they fall out of date as soon as a new factor shows up, and that these days we can replicate the work in seconds that once took hours or months of calculations; however, it is a part of the history of investigating these numbers.

Speaking of history, cofact nicely replicated all of the prior results I could lay my hands on, back to 1905, where a residue of some sort had been published: Morehead & Western’s F7 & F8; Robinson’s funky F10 hex residue (using u to z as the hex digits!); S–H; Young & Buell; CDNY; and Crandall, Mayer & Papadopoulos. Only one error was found among them (the F12 2^35 – 1 residue in CDNY is missing the first digit, 5, but is otherwise correct). cofact however did throw some weird gwsetup errors and one trivial bug trying to run a Pépin test on F0, since the test won’t work on n = 0, so here’s a little fix.

Code:
    if (n == 0) {
        printf ("Error: the Pepin test cannot be run on Fermat number F0.\n\nF0 = 3 is prime!\n");
        exit (1);
    }
... around line 301 (just before incrementing argi++ in the loop parsing the Fermat number) should do the trick.
cxc is offline   Reply With Quote
Old 2023-06-30, 06:03   #26
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
San Diego, Calif.

32·7·163 Posts
Default

I remember that I ran a lot of GFN(n,b) and GFN'(n,odd b) cofactor compositeness tests, as well, up to n<=30,31 but they were never recorded. If any of them would have been PRP, - that would have been interesting and would have made the news, but composite - you just write that computation off. This is like writing into history books that Jon B. Worrysome (or insert any other name) on March 19th, 2012 accurately predicted that the sun will come up again tomorrow in the east. That is, arguably, for n<30 (adjusted for the century; for 1952, criteria are different). Above 30, there are a few n values where this result is possible to obtain with a lot of effort which deserves to be recorded. And above 35-36, again, we enter the uncharacterized.

(OTOH, I did nothing to write home about for F12. It was all Mike.)
Batalov is offline   Reply With Quote
Old 2023-06-30, 07:11   #27
cxc
 
cxc's Avatar
 
"Catherine"
Mar 2023
Melbourne

5×11 Posts
Default

Hi Serge, thanks! Your point about the recency of results is well taken. Almost anyone and his or her desktop computer could have checked the most recent cofactors for m < 24 from 2009 onward. But going back to last century, it’s a very different story. The S–H paper in 1964 offers a set of punched cards for anyone willing to try to do Pépin’s test on the next uncharacterised Fermat (at that point it was F17) and helpfully they published their interim residue at the 20th of 131,071 squarings!

By the same token, the 1980s feels like it ought to be recent enough to be in people’s memories; and results still took a long time to achieve even then. I found a paper from 1990 replicating the Suyama F15 cofactor computation where he manages to do it in 11 hours (where Suyama had taken over a hundred, six years before). My eight-year old Mac now takes 1 second, so hooray for progess?
cxc is offline   Reply With Quote
Old 2023-06-30, 07:43   #28
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
San Diego, Calif.

32×7×163 Posts
Talking

Quote:
Originally Posted by cxc View Post
By the same token, the 1980s feels like it ought to be recent enough to be in people’s memories; and results still took a long time to achieve even then.
In 1980 actually, I computed 100,000 and later 200,000 decimal digits of 𝜋, which is now of course a fraction of a second to do. But for a schoolchild, it was an ok achievement.

I coded everything myself from scratch (in Algol, too, iirc), but it was run at the USSR Nuclear Center as a test program on spare compute bandwidth by my father (pretending to have written it as a test of hardware. Don't tell anyone but he never learned Algol, only Fortran). In fact, I might still have the stack of perfocards. My father decades later gifted it back to me.
Batalov is offline   Reply With Quote
Old 2023-07-02, 22:04   #29
Andrew Usher
 
Dec 2022

7738 Posts
Default

Quote:
Originally Posted by Batalov View Post
I remember that I ran a lot of GFN(n,b) and GFN'(n,odd b) cofactor compositeness tests, as well, up to n<=30,31 but they were never recorded.
I assume you mean 20-21, not 30-31 - a GF is bigger than the ordinary Fermat of the same n, and testing something the size of F30 back then would have been very noteworthy!

It's strange that no one ever did run the Pepin test on F17 - with long multiplication, it would be ~64 times the effort of F14, and computers 64 times faster than a 7090 were not rare by the time the factor was found in 1978.
Andrew Usher is online now   Reply With Quote
Reply

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

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


Fri Jul 7 13:30:27 UTC 2023 up 323 days, 10:59, 0 users, load averages: 1.17, 1.25, 1.21

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.

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