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.
seq 10000 99999 | factor | grep '^\([^:]*\): \1$' | cut -d: -f1 >5_digit_primes.txt
Using that file with grep was helpful for refining guesses.
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.