Hacker News new | ask | show | jobs
by nicodemus26 1616 days 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.

1 comments

I 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.