Pergunta de entrevista da empresa Bloomberg

Write a program to find all primes up to 1000.