Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ah right, sure.

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'.



Probably much faster, but also doing half the work yourself. It'll depend on the situation which is the better solution.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: