Skip to content

Instantly share code, notes, and snippets.

@globulon
Created January 31, 2012 17:05
Show Gist options
  • Select an option

  • Save globulon/1711615 to your computer and use it in GitHub Desktop.

Select an option

Save globulon/1711615 to your computer and use it in GitHub Desktop.
Port in Clojure of missingfactor smart resolution of euler problem 52
(defn problem-fifty-two[]
(time (take 1 (drop-while #(not (= 1 (count (set (map (comp sort str (partial * %)) [2 3 4 5 6]))))) (iterate inc 1)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment