The Sieve of Eratosthenes

Prints prime numbers from 1 to 1000.