solutions to the euler problems