Large Factorials in LISP

(defun factorial(x)
(cond ((zerop x) 1)
('T (* x (factorial (1- x)))) ))

(factorial 1000)

source

Leave a Reply