add problem 10, switch problem 7 to sieve strategy