Pergunta de entrevista da empresa Fast Enterprises

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