Refactor Euler #4 solution to not use $-