HARMAN Interview Question

Write code to find if a number is prime.