Fast Enterprises Interview Question

Write code that checks if a number is prime.