Not very impressive performance, this brute-force method takes about 30 seconds to run. Could probably be a lot quicker if factors were chosen more intelligently.
(def factors (into () (range 20 3 -1)))
(defn- all-factors [number]
(if (every? #(zero? (mod number %)) factors)
number
(recur (inc number))))
(defn solve[]
(all-factors 1))
Org-mode PDF export failure
-
Having replaced my laptop due to a tea related accident, I am finding a few
things that I need to reconfigure. Org exports are one of them. On my new
fedor...
14 years ago
No comments:
Post a Comment