![]() |
|
|
#254 |
|
"Mark"
Apr 2003
Between here and the
634710 Posts |
|
|
|
|
|
|
#255 |
|
"Gary"
Aug 2015
Texas
26 Posts |
|
|
|
|
|
|
#256 |
|
Banned
"Luigi"
Aug 2002
Team Italia
32×5×107 Posts |
|
|
|
|
|
|
#257 |
|
"Mark"
Apr 2003
Between here and the
11000110010112 Posts |
|
|
|
|
|
|
#258 |
|
Sep 2003
5·11·47 Posts |
Is there some fast way to verify very big Fermat factors?
For all Mersennes in our typical ranges, modular exponentiation verifies a factor almost instantly. The entire database of millions of known factors can be verified in seconds. For Fermat factors, though, modular exponentiation slows down drastically when n gets into the tens of thousands. Let alone huge ones like n, m, k = 3329780,3329782,193. There must be some other way. |
|
|
|
|
|
#259 | |
|
"Gary"
Aug 2015
Texas
6410 Posts |
Quote:
I often verify all known factors for n < 1,000,000 whenever I make changes to pmfs or get access to a new system, to make sure it's working correctly. It take about 5 hours, with about 47 minutes being required for n = 960901 alone. |
|
|
|
|
|
|
#260 | |
|
Sep 2003
5×11×47 Posts |
Quote:
The command was ./factorverify --fermat --vv FERMAT.txt and the files are attached. |
|
|
|
|
|
|
#261 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
224068 Posts |
Try on the same platform and compare times:
1. download pfgw 2. put all factors in a file 3. run pfgw -N -k -l -gos2 file |
|
|
|
|
|
#262 | |
|
Sep 2003
A1916 Posts |
Quote:
I just wanted to verify that the known factors of Fermat numbers really are factors, for instance, to check that 193 * 2^3329782 + 1 really does divide 2^(2^3329780) + 1 I used GMP even if it's slower than more specialized software, because it's a very widely used and thoroughly tested library, a precompiled version is a standard component of most Linux distributions, and it's possible to formulate the test in a few simple lines of code, and therefore have extremely high confidence in the result. Maybe you could use pfgw to verify that the known Fermat factors really are prime factors and not composite factors? But maybe not for the goal I wanted. Or am I misunderstanding? |
|
|
|
|
|
|
#263 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
2×7×677 Posts |
Yes
|
|
|
|
|
|
#264 |
|
"Robert Gerbicz"
Oct 2005
Hungary
27148 Posts |
Just interestingly, if m=k*2^(n+2)+1 | F_n (where k can be even) and 0<k<2^(n+2) then m is prime! And this holds for the known factors in the list (surely) for say n>100.
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New Generalized Fermat factors | Batalov | Factoring | 149 | 2017-02-20 12:06 |
| Best case Fermat Factors | yourskadhir | Miscellaneous Math | 5 | 2012-12-12 04:18 |
| Generalized Fermat factors - why? | siegert81 | Factoring | 1 | 2011-09-05 23:00 |
| Weighted Fermat factors Top 20 | Merfighters | Factoring | 0 | 2010-04-13 14:16 |
| Fermat 12 factors already found? | UberNumberGeek | Factoring | 6 | 2009-06-17 17:22 |