Fast Enterprises interview question

Write a function that determines whether a given number is prime or not.