Fast Enterprises interview question

Writing a function to determine if a number is prime