project euler - problem 6