Skip to content

Instantly share code, notes, and snippets.

@mgarces
Created May 19, 2014 10:15
Show Gist options
  • Save mgarces/1873bff70893bd844123 to your computer and use it in GitHub Desktop.
Save mgarces/1873bff70893bd844123 to your computer and use it in GitHub Desktop.
for n in $(for i in {3..10000} ; do out=$(( $i % 2 )); if [ $out -eq 1 ]; then echo $i ; fi ; done) ; do F=($(factor $n)) ; if [ -z "${F[2]}" ]; then echo $n ; fi ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment