Finished project euler problem 18.