Skip to content

Instantly share code, notes, and snippets.

@sritchie
Created June 25, 2011 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sritchie/1046754 to your computer and use it in GitHub Desktop.
Save sritchie/1046754 to your computer and use it in GitHub Desktop.
(defn palindrome?
[num]
(let [s (str num)]
(= s (->> s reverse (apply str)))))
(->> (for [x (range 100 1000)
y (range 100 1000)]
(* x y))
(filter palindrome?)
(reduce max))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment