So the other day I was in an interview for a PhD program, one of the professors asked me to give the definition of a prime number. So I gave him the following usual definition-
Any positive number $p>1$ is called a prime number if the only divisors of $p$ are $1$ and $p$ itself.
Then he asked me what are the other definitions of a prime number? To which I had no answer as I don't know any other definition. Then he said the following-
A natural number $n > 1$ is a prime number if and only if $(n-1)!=-1 (\text{mod} ~n).$
Which is basically the statement of Wilson's theorem.
My question is, can we use these kind of results//theorems as definitions of prime numbers?
If I say, "for any natural number $n>1$, if $\phi(n)=n-1,$ then $n$ is a prime, where $\phi$ is Euler's Totient function." would also qualifies to be a definition of prime number?
If so what are the other definitions of prime numbers?
Thanks for any valuable input.
Edit: So from the comments I got several examples, thanks for that, I got the idea. So now I want an answer to the question, can we use these kind of results//theorems as definitions of prime numbers?
Just like Wilson's theorem (a positive integer is a prime if and only if ....) any equivalent statement is handy when we want to show a number is prime. If we encountered a number in a situation where congruence condition of its factorial is available then it is good to use that for testing primality.
Logically any of the "if-and-only-if theorems" can be taken as a definition.
But human beings who discover theorems are not logical machines. While learning a subject, a formulation that uses less preliminary concepts is helpful; So the theorem "$n$ is a prime iff $Z/nZ$ is a field", is not suitable as a definition.
Accepted textbooks use that formulation of definition which makes it easy to digest and understand the subject, even if the subject did not evolve that way historically!