Project Euler
Posted by Rick on the 17th of October, 2008 at 11:53 pm under ublog. This post has Comments.Just watched the December 2007 Google Authors session with Randall Munroe, creator of the XKCD webcomic. Really good talk; he seems like a real geek, which is awesome. He inspired me to sign up for Project Euler, which I have. I did the first problem in a couple of minutes, and visited the forum to find out what kind of code others were writing. I continue to love lisp, so I think I’ll be tackling the challenges in Clojure. The first problem yields to some basic list operations:
(reduce + (filter #(or (= (rem %1 3) 0) (= (rem %1 5) 0)) (range 1000)))
We’ll see how well Lisp holds up for the later problems.