Euler problem 1 code format