I took the 'n' to be the 100, not the 101. A little too quick on the submit there, I should have run it :)
But anyway, that seems to be a damn sight faster than to run a loop to add a bunch of numbers in a fixed interval.
Especially for large 'n'.
I took the 'n' to be the 100, not the 101. A little too quick on the submit there, I should have run it :)
But anyway, that seems to be a damn sight faster than to run a loop to add a bunch of numbers in a fixed interval.
Especially for large 'n'.