euler/lisp/euler007.lisp

6 lines
177 B
Common Lisp
Raw Normal View History

2016-10-22 20:04:08 +00:00
(load "euler.lisp")
(defun solution ()
(first (reverse (loop for i from 2 when (prime i) collect i into prime-list when (eq 10001 (length prime-list)) return prime-list)))
)