Domanda di colloquio di Fast Enterprises

How would you go about writing an isPrime function?