solves euler question 1