refactor Euler03
major refactoring