Refactor Euler #6 solution to not use $-