10.12.2012 Views

Prime Numbers

Prime Numbers

Prime Numbers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

200 Chapter 4 PRIMALITY PROVING<br />

positive integer with (b +1) p ≡ b p +1(modp 2 ). (As shown in [Crandall et<br />

al. 1997] we may take b = 2 for every prime p up to 10 12 except p = 1093 and<br />

p = 3511, for which we may take b = 3. It is probably true that b(p) =2or3<br />

for every prime p. Wecertainlyhaveb(p) < ln 2 p; see Exercise 3.19.)<br />

We now define a Jacobi sum J(p, q). This is<br />

J(p, q) =<br />

q−2<br />

m=1<br />

b<br />

χp,q m (m − 1) .<br />

The connection to the supposed primality of n is made with the following<br />

more general result. Suppose n is an odd prime not divisible by p. Letf be<br />

the multiplicative order of n in Z ∗ p. Then the ideal (n) inZ[ζp] factors into<br />

(p−1)/f prime ideals N1, N2,...,N (p−1)/f each with norm n f .Ifα is in Z[ζp]<br />

but not in Nj, then there is some integer aj with α (nf −1)/p ≡ ζ aj<br />

p (mod Nj).<br />

The Jacobi sums test tries this congruence with α = J(p, q) for the same<br />

pairs p, q (with p>2) that appear in the Gauss sums test. To implement this,<br />

one also needs to find the ideals Nj. This is accomplished by factoring the<br />

polynomial x p−1 + x p−2 + ···+ 1 modulo n into h1(x)h2(x) ···h (p−1)/f (x),<br />

where each hj(x) is irreducible of degree f. Then we can take for Nj the<br />

ideal generated by n and hj(ζp). These calculations can be attempted even<br />

if we don’t know that n is prime, and if they should fail, then n is declared<br />

composite.<br />

For a complete description of the test, the reader is referred to [Adleman<br />

et al. 1983]. For a practical version and other improvements see [Bosma and<br />

van der Hulst 1990].<br />

4.5 The primality test of Agrawal, Kayal, and Saxena<br />

(AKS test)<br />

In August 2002, M. Agrawal, N. Kayal, and N. Saxena announced a<br />

spectacular new development, a deterministic, polynomial-time primality test.<br />

This is now known as the AKS test. We have seen in Algorithm 3.5.13 that<br />

such a test exists on the assumption of the extended Riemann hypothesis.<br />

Further, in Algorithm 3.5.6 (the “Miller–Rabin test”), we have a random<br />

algorithm that expects to prove that composite inputs are composite in<br />

polynomial time. We had known a random algorithm that expects to prove<br />

that prime inputs are prime in polynomial time; this is the Adleman–Huang<br />

test, which will be briefly described in Section 7.6. Finally, as we just saw in<br />

Theorem 4.4.6, Algorithm 4.4.5 is a fully proved, deterministic primality test<br />

that runs within the “almost polynomial” time bound (ln n) c ln ln ln n .Wesay<br />

“almost polynomial” because the exponent ln ln ln n growssoveryslowlythat<br />

for practical purposes it might be considered bounded. (A humorous way of<br />

putting this: Though we have proved that ln ln ln n tends to infinity with n,<br />

we have never observed it doing so!)<br />

The new test is not just sensational because it finally settles the theoretical<br />

issue of primality testing after researchers were so close in so many ways,

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

Saved successfully!

Ooh no, something went wrong!