Microsoft Interview Question

Write a function to determine if a number is prime or not