Pergunta de entrevista da empresa Paycom

Code an algorithm to find all prime numbers less than n.