![]() |
|
|
#1 |
|
May 2010
Prime hunting commission.
168010 Posts |
How a prime square will be factored instantly, but a semiprime won't.
Ex: 438190746132064523680359691464734744483214502885929539054808778130318905370682196955192091850205041234129084385881 = 6619597768233841288586077681920104634366770491496570431092 Would be found in under half a second 246090902435728443147794225059123680177312909574781907744990390550902712459821618259887515603771941862490471935777 = 609730809803503522343684492396608771943181991097776558309 * 403605818303712690533169288723930453642200445195683040653 Would take days to factor. I find this very disturbing. Very disturbing. |
|
|
|
|
|
#2 |
|
Jun 2003
The Texas Hill Country
44116 Posts |
Consider factoring by Fermat's Method.
For N = cd, let c be the largest subroot factor. If N has a factor close to its square-root, the method works quickly. More precisely, if c differs less than (4N)1/4 from (N)1/2 the method requires only one step. Note, that this is independent of the size of N. In the former case, the difference is zero. In the latter case, it is large. Either more steps would be required, or a different method is needed. By either approach, the computation is longer. |
|
|
|
|
|
#3 |
|
"Phil"
Sep 2002
Tracktown, U.S.A.
100010111112 Posts |
Several factoring methods only work if the number to be factored is known not to be a prime power, i.e., it is known to have at least two distinct prime factors. Therefore, before trying one of these methods, a check is made that the number is not a perfect square, cube, etc. This can be done quickly compared to the time it will take to actually factor it.
|
|
|
|
|
|
#4 |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
17×251 Posts |
I know the chances of actually running into a large prime power is astronomically low when dealing with large numbers as encountered in aliquot sequences of Cunningham tables (or the like), but do any of the normal automated tools do any check of this at all? Or, for the factoring tables, has a check been done? Considering the low cost, (if I understand correctly, it's pretty quick for checking a narrow range of factors, just like TF is, but for the opposite end of size: where TF looks for very small factors, Fermat's method looks for ones near sqrt(N)) would it be worthwhile?
|
|
|
|
|
|
#5 |
|
Jun 2003
The Texas Hill Country
100010000012 Posts |
Since we have a polynomial description of each Cunningham number, algebraic methods eliminate any such possibility.
Further, the "simpler" factoring methods, have all been attempted to eliminate any "low-hanging fruit". The only remaining holes in the Cunningham tables are composed of only factors that are more difficult to find. |
|
|
|
|
|
#6 |
|
"Phil"
Sep 2002
Tracktown, U.S.A.
3·373 Posts |
But suppose a 225 digit Cunningham number suddenly has a 60 digit factor discovered by ECM. Nothing says that the 165 or so digit cofactor could not be a square of a prime. My understanding is that this is tested before trying GNFS with the current programs. Anyone able to clarify?
|
|
|
|
|
|
#7 |
|
Nov 2008
91216 Posts |
I know that msieve checks for prime powers. I don't think the GGNFS sievers do, though.
|
|
|
|
|
|
#8 |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
426710 Posts |
(all of these are msieve being told, by factmsieve.py, to run polynomial selection:
Where p is 661959776823384128858607768192010463436677049149657043109 (the prime in the example in the first post), and q is the next prime after that (same digits but ending in 81) the first is p^2, the second is p*q the third is p^3, the fourth is p^2*q) Code:
Msieve v. 1.44 Fri May 28 06:25:20 2010 random seeds: db891914 67fd9bc5 factoring 438190746132064523680359691464734744483214502885929539054808778130318905370682196955192091 850205041234129084385881 (114 digits) searching for 15-digit factors prp57 factor: 661959776823384128858607768192010463436677049149657043109 prp57 factor: 661959776823384128858607768192010463436677049149657043109 elapsed time 00:00:01 Msieve v. 1.44 Fri May 28 06:28:30 2010 random seeds: 586bb268 c9f15c95 factoring 438190746132064523680359691464734744483214502885929539102469882061602562648501956265016845 217645788772904391489729 (114 digits) searching for 15-digit factors commencing number field sieve (114-digit input) commencing number field sieve polynomial selection time limit set to 1.72 hours ... Msieve v. 1.44 Fri May 28 06:50:53 2010 random seeds: a84fa7fc 3deedde0 factoring 290064648515653604290850896210557000788223358877016965219834376481563501426743334123375488 518677419822009003459489974639850922949258651900751911554066671289177491607944029 (171 digits) searching for 15-digit factors prp57 factor: 661959776823384128858607768192010463436677049149657043109 prp57 factor: 661959776823384128858607768192010463436677049149657043109 prp57 factor: 661959776823384128858607768192010463436677049149657043109 elapsed time 00:00:03 Msieve v. 1.44 Fri May 28 06:53:58 2010 random seeds: 46972700 d092cfad factoring 290064648515653604290850896210557000788223358877016965251384110203072147131729231908836390 121468864029795930271436206665233884135947770081525742167281434258034785683727461 (171 digits) searching for 15-digit factors commencing number field sieve (171-digit input) commencing number field sieve polynomial selection time limit set to 300.00 hours ... Last fiddled with by Mini-Geek on 2010-05-28 at 11:56 |
|
|
|
|
|
#9 |
|
Tribal Bullet
Oct 2004
3·1,181 Posts |
Msieve uses a very complex recursive factoring framework; after ECM, factors are dropped into a list but first have any factors in common with other factors in the list removed. Then for every composite in the list it checks whether the composite is a power and if not then runs QS or NFS. If given a number of the form p*p*q, QS or NFS will first find factors of p*p and q, then the recursive framework will split p*p. Unfortunately there is no known way to use the fact that an input contains a factor which is a power, in order to make the factorization faster.
Mini-geek is correct, Fermat's method is not implemented (nor Lehman's; maybe someday I should fix that; alpertron's applet uses it though, and for inputs where Lehman's method works it's much faster than any of the heavy artillery that msieve uses). Last fiddled with by jasonp on 2010-05-28 at 12:27 |
|
|
|
|
|
#10 |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
Factoring the following: c(80, 82, 84, 86, 88, 90, 94, 98, 102, 106, 110, 116, 122, 128, 134, 140)
c80 = 45261371639976440147856072490845590811635113169755543286071538119010508358468757. /used QS: Code:
SIQS parameters: 18617 primes, sieve limit: 76968 Multiplier: 2, factor base: 441937 Last fiddled with by 3.14159 on 2010-05-29 at 01:25 |
|
|
|
|
|
#11 |
|
May 2010
Prime hunting commission.
168010 Posts |
"I know the chances of actually running into a large prime power is astronomically low when dealing with large numbers"
Self-explanatory. |
|
|
|