This is in an Algebra and Combinatorics module and I don't know how to prove this. The full question is,
Let $n$ be a natural number greater than $1$. Suppose that $n$ is a factor of $(n-1)!+1$. Prove that $n$ is prime.
Any help would be greatly appreciated -thanks.