Completed #25 of project euler