Question d’entretien chez Fast Enterprises

How would you go about writing an isPrime function?