Fast Enterprises Interview Question

Write a function that determines whether a given number is prime or not.