Added solution for Problem 3 and an implementation of the sieve of Eratosthenes