Fast Enterprises Interview Question

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