mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > FermatSearch

Reply
 
Thread Tools
Old 2023-08-18, 17:22   #34
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

8,069 Posts
Default

Quote:
Originally Posted by cxc View Post
for the forward half only the new unreleased version of mlucas that Ernst had been using seems to be capable of running the Pépin test on Fermats F31 and beyond.
What's missing from already-released Mlucas, in your view?
As I understand it, what's unreleased is the PRP-proof-generation capability, & for checking cofactors, unsupported "fast Suyama-style cofactor-PRP test". The latter may only be unsupported for Mersennes in Mlucas, since Ernst makes reference to running them on F25-F29 in Mlucas in 2018 https://mersenneforum.org/showpost.p...3&postcount=82.

F31-F33 should theoretically be within the Pepin test range of Mlucas expanded to up to 512M fft length in v20.1.1 which has been available for over a year in its 06-Jul 2022 patched form, and in earlier patch levels and in V20.1 before that. https://mersenneforum.org/showpost.p...47&postcount=1
https://mersenneforum.org/showpost.p...postcount=2060
https://mersenneforum.org/showpost.p...postcount=2064
Ernst had been running both-stages P-1 on F33 for at least a year. https://mersenneforum.org/showpost.p...47&postcount=1
I haven't seen posted a conclusion to that large P-1 run yet, of order 2 years overall.

A big impediment to Pepin testing F31-F33 is run time projected on available CPUs, until the adaptation of the Pepin test into Gpuowl & a really fast GPU occurs as described in the last paragraph of https://mersenneforum.org/showpost.p...51&postcount=6. I roughly estimate potential F3x Pe'pin test run time based on gpuowl Mersenne PRP performance here:
Benchmarked Radeon VII Mersenne iteration rate corresponds to 2172.3M exponent 620 days per PRP, & scaling ~ O(p^2.1) at large exponent. Extrapolating to Pe'pin testing Fermat numbers on similar speed hardware and software, if & when available,
F30 2^1073741824 + 1; ~ 141 days or 4.6 months
F31 2^2147483648 + 1; ~ 605 days or 1.7 years
F32 2^4294967296 + 1; ~ 2595 days or 7.1 years
F33 2^8589934592 + 1; ~ 11127 days or 30.5 years
There are currently server-farm-grade GPUs capable of more than triple the DP speed of the Radeon VII. See the online GPU benchmarks, so Pepin testing F33 might be possible at ~10 years duration on currently existing hardware after additional substantial software development.

Ernst's health issues had slowed and now apparently stopped Mlucas development & other involvement.
His last forum post was nearly 3 months ago. https://mersenneforum.org/showpost.p...postcount=2934
His hardware continues to contribute Mersenne PRP/proof results from gpuowl, probably automatically via a primenet.py script, as recently as today, and occasional GIMPS LL DC wavefront results by Mlucas from "nuc2", most recently 2023-07-24.

But I don't see any reference to suyama in the Mlucas help.txt. https://www.mersenneforum.org/mayer/README.html contains documentation of how to use for Mersenne numbers but not for Fermat numbers.
If the available functionality is to be used in existing released Mlucas, some analysis of the source code is likely to be necessary.

Excerpted from the Mlucas v20.1.1 help.txt:
Code:
 -f {int}
	Performs a base-3 Pe'pin test on the Fermat number F(num) = 2^(2^num) + 1.
	If desired this can be invoked together with the -fft option, as for the Mersenne-number
	self-tests (see notes about the -m flag). Note that not all FFT lengths supported for -m
	are available for -f; the supported ones are of form k × 2^n, where k is an odd integer
	in the set [1,7,15,63].

	Optimal radix sets and timings are written to a fermat.cfg file.
	Performs as many iterations as specified via the -iters flag [required].

======================

[6]: Residue shift:

 -shift {int}
	Number of bits by which to shift the initial seed (= iteration-0 residue). This initial
	shift count is doubled (modulo the binary exponent of the modulus being tested) each
	iteration; for Fermat-number tests the mod-doubling is further augmented by addition of a
	random bit, in order to keep the shift count from landing on 0 after (Fermat-number index)
	iterations and remaining 0. (Cf. https://mersenneforum.org/showthread.php?p=582525#post582525)

	Savefile residues are rightward-shifted by the current shift count
	before being written to the file; thus savefiles contain the unshifted residue, and
	separately the current shift count, which the program uses to leftward-shift the
	savefile residue when the program is restarted from interrupt.

	The shift count is a 32-bit unsigned int; any modulus having > 2^32 bits (thus using an
	FFT length of 256M or larger) requires 0 shift.

======================

[7]: Probable-primality testing mode:

 -prp {int}
	Instead of running the rigorous primality test defined for the modulus type
	in question (Lucas-Lehmer test for Mersenne numbers, Pe'pin test for Fermat numbers),
	do a probable-primality test to the specified integer base b = {int}.

	For a Mersenne number M(p), starting with initial seed x = b (which must not = 2
	or a power of 2), this means do a Fermat-PRP test, consisting of (p-2) iterations of
	form x = b*x^2 (mod M(p)) plus a final mod-squaring x = x^2 (mod M(p)), with M(p) being
	a probable-prime to base b if the result == 1.

	For a Fermat number F(m), starting with initial seed x = b (which must not = 2
	or a power of 2), this means do an Euler-PRP test (referred to as a Pe'pin test for these
	moduli), i.e. do 2^m-1 iterations of form x = b*x^2 (mod F(m)), with F(m) being not merely
	a probable prime but in fact deterministically a prime if the result == -1. The reason we
	still use the -prp flag in the Fermat case is for legacy-code compatibility: All pre-v18
	Mlucas versions supported only Pe'pin testing to base b = 3; now the user can use the -prp
	flag with a suitable base-value to override this default choice of base.

Last fiddled with by kriesel on 2023-08-18 at 17:25
kriesel is offline   Reply With Quote
Old 2023-08-18, 18:00   #35
mathwiz
 
Mar 2019

2·197 Posts
Default

Quote:
Originally Posted by cxc View Post
That only leaves F29 = 2536870912 + 1, and F30 = 21073741824 + 1 to be verified: first a PRP proof generated by mprime, then running the Suyama cofactor test using cofact (each utilises the gwnum library for all that modular squaring). I don’t think Gary is intending to run F29 immediately, as it would be a multi-month run; and as for F30, that is a monster run and would require the box running the test to have the AVX-512 extensions for mprime to deal with such a large exponent.
Here goes nothing!

Code:
[Main thread Aug 18 17:52] Mersenne number primality test program version 30.14
[Main thread Aug 18 17:52] Optimizing for CPU architecture: Core i3/i5/i7, L2 cache size: 32x1 MB, L3 cache size: 39424 KB
[Main thread Aug 18 17:52] Starting worker.
...
[Worker Aug 18 17:52] Starting Gerbicz error-checking PRP test of F29/2405286912458753 using all-complex AVX-512 FFT length 30M, Pass1=1280, Pass2=24K, clm=2, 32 threads
[Worker Aug 18 17:52] Preallocating disk space for the proof interim residues file p536870912.residues
[Worker Aug 18 17:53] PRP proof using power=6x2 and 64-bit hash size.
[Worker Aug 18 17:53] Proof requires 4.3GB of temporary disk space and uploading a 940MB proof file.
[Worker Aug 18 17:55] Iteration: 10000 / 536870912 [0.00%], ms/iter: 12.773, ETA: 79d 08:53
[Worker Aug 18 17:57] Iteration: 20000 / 536870912 [0.00%], ms/iter: 12.388, ETA: 76d 23:24
[Worker Aug 18 17:59] Iteration: 30000 / 536870912 [0.00%], ms/iter: 12.366, ETA: 76d 19:59
Hope I can keep it going until November.
mathwiz is offline   Reply With Quote
Old 2023-08-18, 18:20   #36
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

806910 Posts
Default

Quote:
Originally Posted by mathwiz View Post
Here goes nothing!
...

Hope I can keep it going until November.
That would be a good shakedown cruise for doing F30 in ~11 months on the same hardware. Back up frequently, & good luck!
kriesel is offline   Reply With Quote
Old 2023-08-18, 21:08   #37
Gary
 
Gary's Avatar
 
"Gary Gostin"
Aug 2015
Texas, USA

22·23 Posts
Default

Quote:
Originally Posted by mathwiz View Post
Here goes nothing!
...
Hope I can keep it going until November.
Thanks mathwiz! Since you are running F29, I'll keep runnng GIMPS stuff on my computer instead of running F29 for 4 months! When mprime finishes and you run cofact, if you have any problems just let me know.

Quote:
Originally Posted by kriesel View Post
What's missing from already-released Mlucas, in your view?
As I understand it, what's unreleased is the PRP-proof-generation capability, & for checking cofactors, unsupported "fast Suyama-style cofactor-PRP test".
That matches my understanding also. In https://www.mersenneforum.org/showpo...3&postcount=82 Ernst said "In the context of testing the cofactor-PRP functionality which will be supported in Mlucas v21, I've at long last done Suyama-style PRP tests on the cofactors of F25-F30, using the Pépin-test residues I've generated for same over the past 10 years...". So it sounds like the first version of Mlucas to support the Suyama cofactor test is v21. He might not want to release v21 if there is a lot of other new functionality in it that is not sufficiently tested. So if v20.1 can generate and save the Pepin residue in a documented format for F31 and higher, I could write a cofact-style program to complete the Suyama steps.
Gary is offline   Reply With Quote
Old 2023-08-18, 22:29   #38
cxc
 
cxc's Avatar
 
"Catherine"
Mar 2023
Melbourne

2·3·11 Posts
Default Best of luck; a clarification

Best of luck, mathwiz, from me also! When the PRP run is just about complete, you’ll want to turn on:
InterimResidues=1
in prime.txt, as the Pépin and Suyama A residues should be the final two residues generated by mprime, for which Ernst reported values BECE1E5FFBE5EC12 and 9BD416DB3918C152 respectively.

This was George’s advice in the mprime 30.14 software thread a day or so back; once my own run concludes I’ll post an update if mprime behaved nicely and gave me a couple of matching values to Ernst’s.

Brevity was the enemy of precision in my previous post on the previous page: I should have said, the only capable piece of software today for running the Pépin test on F31, F32, and F33 with the features we want is the un-released mlucas, for those two reasons you’ve all been discussing: proof generation, and having the Suyama test code following directly on. (P–1 factorisation on the other hand, you don’t need those features.)

You don’t want to run such an expensive computation as the Pépin test every time a factor turns up, just to be able to run the Suyama test on the cofactor, and the VDF proof format seems as portable a solution for storing the full residue needed for the test. The Suyama A value never changes; you get a different Suyama B value depending on which factor(s) you test, but this is the relatively easy and cheap value to compute (though it still has to be calculated modulo Fm).
cxc is offline   Reply With Quote
Old 2023-09-01, 16:20   #39
cxc
 
cxc's Avatar
 
"Catherine"
Mar 2023
Melbourne

2·3·11 Posts
Default F27 Pépin and Suyama residues (verification)

I was hoping to post this before the end of August but there were a few delays!
Turning on InterimResidues=1 in mprime’s prime.txt yielded the Pépin residue mod 264 immediately before mprime generated the proof file. The numbering of residues is a little haphazard owing to Gerbicz error checking, but these values did occur in the correct order in spite of that!
Quote:
[Worker Sep 2 00:55:48] F27/151413703311361/231292694251438081 interim PRP residue 043A6C8B9272B297 at iteration 134217727
[Worker Sep 2 01:02:17] F27/151413703311361/231292694251438081 interim PRP residue C3B191C45CCD7820 at iteration 134217685
And from cofact, all of these are in agreement with Ernst Mayer and Gary Gostin:
Quote:
Testing the F27 cofactor for primality using the following known factors: 151413703311361 231292694251438081
Cofactor is 40403531 digits long
Suyama A residue mod 2^64 2^36 2^36-1 2^35-1: 0xC3B191C45CCD7820 18736838688 55240256170 21887650168 (decimal)
Suyama B residue mod 2^64 2^36 2^36-1 2^35-1: 0x485F292142F953EC 5418603500 26481669619 20036545122 (decimal)
(A-B) mod C residue mod 2^64 2^36 2^36-1 2^35-1: 0x79E89190C56372B7 3311628983 29330680430 2608954171 (decimal)
GCD (A-B, C) = 1
F27 cofactor is composite, and is not a prime power
cxc is offline   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 09:45.


Sun Sep 24 09:45:06 UTC 2023 up 11 days, 7:27, 0 users, load averages: 0.77, 0.75, 0.83

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.

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