[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Prime number tests



Well, there is one prime number test which NEVER fails, and that is that
(n-1)!+1 mod n is zero for all primes, and non-zero for all non-primes.
;-)