Pergunta de entrevista da empresa Fast Enterprises

Write a method that checks whether a number is prime.