In addition to memory allocation failure, other problem was that 10**17 was overflowing. Now passes.
Don't store final, failing value to the loop variable. This fix also makes for .. range a bit more efficient, as it uses less store/load pairs for the loop variable.