Updated problem 10 to run much faster using Sieve of Eratosthenes to generate primes.
Completed problem 31.
Completed problem 42.