Modifies printPrimes program so that it writes on screen the first 1,000 primes