Committing a solution to euler problem 7.