Euler Project problem #1