Added problem 10 solution with a cached prime generator