Hacker News new | ask | show | jobs
by deletes 4617 days ago
Awesome solution, but it breaks if you change the iteration range.
1 comments

Yeah, you're stuck with counting up from 1, although you could tweak it to suppress the output prior to a starting point.
Here is my C solution for arbitrary positive range: http://ideone.com/a0EdtS
Nice, I get it. Here's mine tweaked - not so clever: https://gist.github.com/garethjwilliams/7210264