refactor Euler01, produces correct result