Refactor Euler #20 solution to not use $-