Solve problem 64 using Clojure/Python.