Added a solution for problem 3 from Project Euler