Fast Enterprises interview question

Write a function to determine whether or not a number is prime.