Fast Enterprises Interview Question

Write code that determines if a number is prime