Another Wilson test for twin primes
- There are lots of these. but here is another nice one by M. Chaves:
Theorem. A necessary and sufficient condition for the integers n>7 and n+2 to be twin primes is that 4(n−3)!+2+n is divisible by n but not by n+2.