Microsoft Interview Question

Write a function to see if a given number is prime.