![]() |
|
|
#1 |
|
Tribal Bullet
Oct 2004
5·23·31 Posts |
I expect that sometime this week I'll be releasing the first draft of a classical siever that is capable of handling the sieving for kilobit-scale NFS factorizations. The early announcement is so that others can tell me if I'm missing something fundamental.
The package will be able to handle sieve lines up to size 2^64, and factor base limits of 2^32 with large primes up to 2^40. Large primes will use an MPQS subsystem that can factor integers up to 2^120. The siever itself is based on the classical siever in GGNFS, with many modifications and cleanups; it looks like the memory consumption is about 5% larger than that needed to store the factor base. The test case I'm working with is RSA1024, using the parameters and polynomials from Shamir and Tromer's TWIRL paper. With a factor base limit just under 2^32 each factor base has over 200 million entries and the two combined take up 3.2 gigabytes of storage. That's two orders of magnitude larger than the size of current cutting edge NFS work, and it's surprisingly difficult to write code that can scale up that much. No, I don't seriously plan to use this for an actual kilobit factorization; this is more for testing purposes and to get an idea of the scale a real effort would need (with a sieve interval of 10^15 like the TWIRL paper wants, a single sieve line will probably take weeks). It's also because a suite of tools that will someday be powerful enough to actually do this sort of work will have to start somewhere. The big thing I'm worried about now is whether 2^32 is enough of a factor base. If it's not then a lot of code will have to change. jasonp |
|
|
|
|
|
#2 | |
|
Bamboozled!
"๐บ๐๐ท๐ท๐ญ"
May 2003
Down not across
270248 Posts |
Quote:
From my investigations of the difficulty of kilobit SNFS, a 32-bit FB bound is easily adequate. Experiments seem to show that 28-bit bounds are sufficient there and 27-bits may be, though probably too small for efficient computation. I'm not so sure about kilobit GNFS. My gut feeling is that 2^32 is on the small side but would have to investigate much more carefully before I can say anything more precise. A small amount of work has been done on the requirements for kilobit GNFS, including the TWINKLE and TWIRL papers. I'm a minor co-author of another paper, the great majority of the work for that being done by Arjen Lenstra. I'll see whether it has appeared on the web somewhere and post the URL if so. Otherwise, I can mail you a personal copy. Paul |
|
|
|
|
|
|
#3 | |
|
"Bob Silverman"
Nov 2003
North of Boston
5·17·89 Posts |
Quote:
require 2^35 to 2^37. |
|
|
|
|
|
|
#4 | ||
|
Tribal Bullet
Oct 2004
5×23×31 Posts |
Quote:
indicate that's wishful thinking at the moment. Quote:
Could an actual siever sharpen the estimates from there? jasonp |
||
|
|
|
|
|
#5 | |
|
"Bob Silverman"
Nov 2003
North of Boston
5×17×89 Posts |
Quote:
from my own line siever on a 64-bit Alpha simply to allow me to run some *small* experiments. I was using 3 large primes (split by pollard rho and then squfof; slow!) The LP bound was 50 times the factor base bound. I tried various size factor bases, starting at 2^28 (bound = 2^32.2) up to 2^35 (bound = 2^39.6) and estimated the amount of sieving needed to gather enough relations. I sampled the yield rate for about 25 values of b, starting near the origin and going out to about 2^30. A *very* rough estimate gave a minimum somewhere between 2^33 and 2^34 primes in the factor base (for EACH polynomial). Note, however, that the response curve is shallow near the optimum, so a factor of about 2 either way will not have a dramatic effect. There was, however, a distinct increase in sieve time over the optimum near 2^28 primes. 2^28 primes is DEFINITELY too few. |
|
|
|
|
|
|
#6 | |
|
Tribal Bullet
Oct 2004
356510 Posts |
Quote:
Either way will be a mess :) jasonp |
|
|
|
|
|
|
#7 | |
|
"Bob Silverman"
Nov 2003
North of Boston
1D8D16 Posts |
Quote:
I only wanted to gather smoothness data. BTW, it *might* be the case that we want to consider FOUR large primes, and not merely three. However, it is very unlikely that a composite near 2^160 will split into 4 primes near 2^40....... Experiments will have to be done. We don't even have any experience with 3 large primes on both sides. Note also, that 32-bit processors can't even address the primes in the factor bases.... |
|
|
|
|
|
|
#8 |
|
"Nancy"
Aug 2002
Alexandria
46438 Posts |
I suppose an ECM routine optimised for input numbers around 10^50 might come in handy here...
We meant to rewrite the EC arithmetic in GMP-ECM with mpn primitives to reduce overhead. We could try to add a few other tricks to allow rapidly testing many relatively small numbers to small bounds (i.e. precomputing and keeping optimal addition chains for the desired primes โคB1). Alex |
|
|
|
|
|
#9 | |||
|
Tribal Bullet
Oct 2004
5·23·31 Posts |
Quote:
Quote:
Regarding the cutoffs for trying to factor the leftover composite, do you think the 3-large-prime bounds from earlier NFS papers would still apply to 40-bit large primes? i.e. according to estimates from the CWI folks, with a FB limit of 2^32 and 40-bit large primes the number of wasted factorizations would be lowest for inputs in the 102-112 bit range (and 64-71 bits for two large primes). Quote:
jasonp |
|||
|
|
|
|
|
#10 | |
|
Bamboozled!
"๐บ๐๐ท๐ท๐ญ"
May 2003
Down not across
1179610 Posts |
Quote:
QS gets you all the factors for essentially the same cost as getting the first. ECM, on the other hand, may produce a too-large (probable) prime cofactor and so remove the need to spend time digging out other factors. The QS sievers descended from the ancient factoring-by-email progenitor have long used ECM, and very successfully. Paul |
|
|
|
|
|
|
#11 | |
|
"Nancy"
Aug 2002
Alexandria
1001101000112 Posts |
Quote:
The complexity of ECM is quite a bit better than QS if one can assume that the number has a prime factor <N1/3. Alex |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Kinsey scale | Brian-E | Lounge | 14 | 2015-08-27 01:43 |
| Best way to scale polynomial selection | pastcow | Msieve | 6 | 2013-05-08 09:01 |
| Experimenting with ksieve | Cruelty | Riesel Prime Search | 18 | 2006-06-25 03:44 |
| Ksieve, NewPGen, Proth_Sieve or other program? | Citrix | 15k Search | 11 | 2004-01-20 06:45 |
| How does Prime95 Scale with Exponents? | wblipp | ElevenSmooth | 5 | 2003-10-15 21:21 |