4 ms·
fwiw, I'd start the loop at i=1000000, on the assumption that anything less is going to fail the "three digits" test once zero-padded. A bit silly granted, but
by soneil 9y ago
fwiw, I'd start the loop at i=1000000, on the assumption that anything less is going to fail the "three digits" test once zero-padded.
A bit silly granted, but it'll let you ditch half the zero-padding. (Only half, but if they're going to be repeated n times, it might be worth it).