Prime decomposition: Difference between revisions
Content deleted Content added
added Clojure version |
minor correction to Clojure version |
||
Line 526: | Line 526: | ||
=={{header|Clojure}}== |
=={{header|Clojure}}== |
||
<lang clojure> |
<lang clojure> |
||
(use 'clojure. |
(use 'clojure.contrib.lazy-seqs) ; defines lazy sequence 'primes |
||
(defn prime-factors [arg] |
(defn prime-factors [arg] |