Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
(defn is-palindrome ([number]
(if (= (str number) (clojure.string/reverse (str number))) number)))
(reduce max (filter number?
(map is-palindrome
(for [x (range 100 1000) y (range 999 99 -1)]
(* x y)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.