Z+ = nonzero elements of Zn = {1, 2, , n-1}.
By Fermat's Theorem, if n is prime, then for every .
If some a violates, then n is composite.