Fast Enterprises Interview Question

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