Solve problem 7 using sieve of eratosthenes
Add problem 8
Add problem 9