Skip to content

Instantly share code, notes, and snippets.

@terrycojones
Created May 19, 2019 19:59
Show Gist options
  • Save terrycojones/bdc16bf8910ba16dd2dd6ccab8cd7e53 to your computer and use it in GitHub Desktop.
Save terrycojones/bdc16bf8910ba16dd2dd6ccab8cd7e53 to your computer and use it in GitHub Desktop.
A factoring program written in dc
[[neither]plsx]sn[c2pla2/sallx]se[ladv1+sm0=nla1=ncla2=pla2%0=elfx]sl
[ldlm<pclald%0=cld2+sdlfx]sf[lap[is prime.]plsx]sp[ldplald/salfx]sc
[[enter X : ]P?dsa0>n3sdllx]ss[[negative]plsx]snlsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment