Fast Enterprises interview question

Write a function determine a given number is prime or not