ThoughtExchange Interview Question

Write a function that returns whether a number is prime or not.