Pergunta de entrevista da empresa Fast Enterprises

Write code that checks if a number is prime.