3 ms·
This script took less than a second to run: seq 10000 99999 | factor | grep '^\([^:]*\): \1$' | cut -d: -f1 >5_digit_primes.txt Using that file with grep was
by nicodemus26 5y ago
This script took less than a second to run:
seq 10000 99999 | factor | grep '^\([^:]*\): \1$' | cut -d: -f1 >5_digit_primes.txt
Using that file with grep was helpful for refining guesses.
- b33j0r 5y agoI always appreciate a good shell pipeline, shared. I am stronger in python, and definitely wrote a script to cheat at Words With Friends back in the day (always told my friend afterwards and only pulled that stunt a few times). If I had known posix better, my script may very well have been a one-liner of bash. Awk-ward.