Committing a solution to euler problem 8.