Updated a solution to the 19th project euler problem.