Project euler problem 2