Exercise 14 first 1000 primes