summaryrefslogtreecommitdiff
path: root/p2.lisp
blob: 488a755275d77e7d7d5b1ce6342f40f7d7b71ed0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(setq a (list 1 2))
(setq l 0)
(loop while (< l 4000000) do
	(setq l (apply '+ (last a 2)))
	(nconc a (list l))
)

(setq s 0)
(loop for i in a do
	(if (eq (mod i 2) 0)
		(setq s (+ s i))
	)
)
(print s)