project euler: problem 2 complete