Fast Enterprises interview question

Write a function to determine if n is a prime number.