Number-theoretic functions in Clojure