10.12.2012 Views

Prime Numbers

Prime Numbers

Prime Numbers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

272 Chapter 6 SUBEXPONENTIAL FACTORING ALGORITHMS<br />

It is noticed in practice, and this is supported too by theory, that the<br />

larger the large prime, the less likely for it to be matched up. Thus, most<br />

practitioners eschew the larger range for large primes, perhaps keeping only<br />

those in the interval (B,20B] or(B,100B].<br />

Various people have suggested over the years that if one large prime is<br />

good, perhaps two large primes are better. This idea has been developed in<br />

[Lenstra and Manasse 1994], and they do, in fact, find better performance for<br />

larger factorizations if they use two large primes. The landmark factorization<br />

of the RSA129 challenge number mentioned in Section 1.1.2 was factored using<br />

this double large-prime variation.<br />

There are various complications for the double large-prime variation that<br />

are not present in the single large-prime variation discussed above. If an integer<br />

in the interval (1,B 2 ] has all prime factors exceeding B, then it must be<br />

prime: This is the fundamental observation used in the single large-prime<br />

variation. What if an integer in (B 2 ,B 3 ] has no prime factor ≤ B? Then<br />

either it is a prime, or it is the product of two primes each exceeding B.<br />

In essence, the double large prime variation allows for reports where the<br />

unfactored portion is as large as B 3 . If this unfactored portion m exceeds<br />

B 2 , a cheap pseudoprimality test is applied, say checking whether 2 m−1 ≡ 1<br />

(mod m); see Section 3.4.1. If m satisfies the congruence, it is discarded, since<br />

then it is likely to be prime, and also too large to be matched with another<br />

large prime. If m is proved composite by the congruence, it is then factored,<br />

say by the Pollard rho method; see Section 5.2.1. This will then allow reports<br />

that are B-smooth, except for two prime factors larger than B (and not much<br />

larger).<br />

As one can see, this already requires much more work than the single largeprime<br />

variation. But there is more to come. One must search the reported<br />

numbers with a single large prime or two large primes for cycles; that is,<br />

subsets whose product is B-smooth, except for larger primes that all appear<br />

to even exponents. For example, say we have the reports y1P1,y2P2,y3P1P2,<br />

where y1,y2,y3 are B-smooth and P1,P2 are primes exceeding B (so we are<br />

describing here a cycle consisting of two single large prime reports and one<br />

double large prime report). The product of these three reports is y1y2y3P 2 1 P 2 2 ,<br />

whose exponent vector modulo 2 is the same as that for the B-smooth number<br />

y1y2y3. Of course, there can be more complicated cycles than this, some even<br />

involving only double large-prime factorizations (though that kind will be<br />

infrequent). It is not as simple as before, to search through our data set for<br />

these cycles. For one, the data set is much larger than before and there is<br />

a possibility of being swamped with data. These problems are discussed in<br />

[Lenstra and Manasse 1994]. They find that with larger numbers they gain a<br />

more than twofold speed-up using the double large-prime variation. However,<br />

they also admit that they use a value of B that is perhaps smaller than others<br />

would choose. It would be interesting to see an experiment that allows for<br />

variations of all parameters involved to see which combination is the best for<br />

numbers of various sizes.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!