Fast Enterprises Interview Question

Write a function determine a given number is prime or not