Posted Dec 7, 2012 9:03 UTC (Fri) by man_ls
In reply to: Shell programming
Parent article: Quotes of the week
Compactness and the use of pipes: two basic Unix principles.
By the way, it appears that the most common last digit in primes is a bit random: running your script for 100 yields 3, for 1000 yields 7 and for 10000 it is 3 again, and for 100000 7 once more. Not bad for a Bash one-liner; and it is not so slow after all.
to post comments)