euler problems refactored