zerop
Tuesday, October 7, 2014
Project Euler Problem 2 Common Lisp
Project Euler Problem 2
(defun problem2 ()
(loop for (a b) = '(0 1) then `(,b ,(+ a b))
while (<= a 4000000)
when (evenp a)
sum a))
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment