Pregunta de entrevista de Fast Enterprises

How would you create a function "isPrime()"?