CommonLispTings/pe3.lisp

11 lines
210 B
Common Lisp
Raw Permalink Normal View History

2023-02-23 21:23:38 +01:00
(defvar div 2)
(defvar num 317584931803)
(loop
(if (zerop(mod num div))
(progn
(setq num (/ num div))
(setq div (- div 1)))
(setq div (+ div 1)))
(when (< num 1) (return div)))