Committing a solution to euler problem 6.