project euler - problem 10