Pergunta de entrevista da empresa Fast Enterprises

Calculate prime numbers up to a certain number.