problem 10 with new Sieve of Eratosthenes approach