Port factorial and is-prime-p to Clojure