Created
July 9, 2012 06:13
-
-
Save dLobatog/3074492 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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