refactor Euler02, produces correct result