Add second euler problem as example

This commit is contained in:
madmaurice 2021-04-06 22:21:26 +02:00
parent cd769b36de
commit cae6fef76d

5
examples/euler2.lisp Normal file
View file

@ -0,0 +1,5 @@
(let ((result
(do ((a 1 b) (b 2 (+ a b)) (sum 0)) ((> b 4000000) sum)
(when (evenp b)
(set sum (+ sum b))))))
(write-line result))