1

Are there any properties that all primes share in common (while all the non-primes don't share it), and could be written in a simple formula which involves only 1 positive integer variable? Thank you!

1 Answers1

6

Wilson's Theorem: $n$ is prime iff $n>1$ and $(n-1)!=-1$ modulo $n$.

Ittay Weiss
  • 79,840
  • 7
  • 141
  • 236
  • Thank you. I got the same result although written a bit different: n is prime iff e^(24PI( (2n choose n)-1)/n^3 )=1 This was actually the reason I was asking the question. – user1398593 Mar 24 '13 at 00:08
  • just to show everyone what I initially thought was going on afterwards e^(i24PI( (2n choose n)-1)/n^3 )cos^2(PI*n)-1=0 holds for all real numbers >0 from there it's almost no problem to catch the nullpoints. – user1398593 Mar 24 '13 at 00:23