(defun factorial (n) (do ((x n (* x n))) ((= n 1) x) (setq n (1- n))))