Create a gist now

Instantly share code, notes, and snippets.

# Prime factorization.
perl -le '$_= 1 x pop; print $+[1] and s/$1/1/g while /^(11+?)\1*$/' 60
2
2
3
5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment