Project Euler Problem2