Pergunta de entrevista da empresa Google

Print all prime numbers between 1 and 1000