Wilson's theorem
Wilson's theorem states that an integer n greater than one is prime exactly when (n − 1)! is congruent to −1 modulo n.
Wilson's theorem states that an integer n greater than one is prime exactly when (n − 1)! is congruent to −1 modulo n.