Refactor Euler #1 solution to not use $-