Wilson’s theorem says that a number N is prime if and only if
(a) If p is prime, then we know every number 1 ≤ x
(b) By pairing up multiplicative inverses, show that (p − 1)! ≡ −1 (mod p) for prime p.
(c) Show that if N is not prime, then (N − 1)! (mod N). (Hint: Consider d = gcd(N, (N − 1)!).)
(d) Unlike Fermat’s Little theorem, Wilson’s theorem is an if-and-only-if condition for primality. Why can’t we immediately base a primality test on this rule?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.