Box interview question

write a function that determines if a number is prime.