Adding solution to problem 6 of project Euler.