Created
December 20, 2013 10:37
-
-
Save emres/8053089 to your computer and use it in GitHub Desktop.
Prints how many prime ages you have left (that is, if you are 31 already.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "You have, with high probability, at most" $(for age in {32..122}; do factor $age | cut -d' ' -f3 | grep -v "[0-9]\+"; done | wc -l) "prime birthdays left." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment