Second exercise - Project Euler - Only one solution