print all primes < 1000, too