Skip to content

Instantly share code, notes, and snippets.

(use 'clojure.contrib.test-is)
(use 'clojure.contrib.trace)
(with-test
(defn prime-factorials [n]
(if (= n 1)
'()
(if-let [
divisor
(some
(with-test
(defn prime-factors [n]
((fn this [n_ last-divisor]
(if (= n_ 1)
[]
(let [
divisor
(or
(some
#(when (zero? (mod n_ %)) %)
We couldn’t find that file to show.