For an odd integer and a base coprime to , an Euler witness is a base for whichBy Euler's criterion, this failure cannot occur for an odd prime, so it certifies that is a composite number.
For example, take and . Then , while the Jacobi symbol is . Thus the base two witnesses the compositeness of fifteen without supplying its factors. If instead , the greatest common divisor already gives a proper divisor, so a primality test can reject before computing this congruence.
If one Euler witness exists modulo , multiplication by injects the set of nonwitnesses into the set of witnesses. Indeed, the product of with a nonwitness cannot be another nonwitness, because cancellation and multiplicativity of the Jacobi symbol would make a nonwitness. Thus at least half of the units modulo are Euler witnesses.
If divides for a prime number , write with and . The Chinese remainder theorem chooses and . This base is a unit modulo and has Jacobi symbol , because it is one modulo every prime divisor. But with , the binomial theorem gives . Since , this is not one, so the Euler congruence fails.
If is squarefree, it has at least two distinct prime factors. Choose to be a quadratic nonresidue modulo one factor and one modulo every other factor, again by the Chinese remainder theorem. Then , while is one modulo a different prime factor. It therefore cannot equal the Jacobi symbol modulo .
The Solovay-Strassen primality test samples unit bases and rejects an odd candidate as composite when it finds an Euler witness. Every prime passes every base by Euler's criterion, while an odd composite passes a random base with probability at most one half.
Articles by others on the same topic
There are currently no matching articles.