Problem 13 of project euler