Number theory in Clojure