News for hackers. Stuff that matters.
Re:Project Euler 001 the Hard Way by rwbhn on Sunday February 02, 2020 @10:46AM (#22217403)
But the author follows that with "It works the same way for 100 as it does 10e100."
Re:Project Euler 001 the Hard Way by dahart on Sunday February 02, 2020 @10:52AM (#22217441)
True! That statement does follows the math formula, and by itself the statement is true regardless of complexity. It will work the same way for small numbers as large ones.

The 10e100 comment does precede the implementation, and this particular O(1) implementation of course might not support inputs in the range of 10e100 exactly.