fix errors to euler problem 9