Pergunta de entrevista da empresa Gopuff

Write an algorithm to determine if a number is prime