project euler - problem 3 [solved]