News for hackers. Stuff that matters.
Re:Primel – guess a 5 digit prime number – each guess must b... by nicodemus26 on Friday January 21, 2022 @06:52PM (#30031537)
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.

Re:Primel – guess a 5 digit prime number – each guess must b... by b33j0r on Friday January 21, 2022 @07:27PM (#30031769)
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.