Add second euler problem as example
This commit is contained in:
parent
cd769b36de
commit
cae6fef76d
1 changed files with 5 additions and 0 deletions
5
examples/euler2.lisp
Normal file
5
examples/euler2.lisp
Normal 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))
|
Loading…
Reference in a new issue