Working on euler problem 2