Fast Enterprises interview question

Write code that determines if a number is prime