Pergunta de entrevista da empresa Fast Enterprises

Given a number, determine whether it's prime or not