Using Wilson's Theorem to generate primes Wilson's Theorem: (n-1)! = -1mod(n) if and only if n is prime