Wilson's theorem is a number theory theorem that states that a number p is prime if and only if (p-1)! + 1 is divisible by p.
Wilson's theorem is a number theory theorem that states that a number p is prime if and only if (p-1)! + 1 is divisible by p.