fork(2) download
  1. (defun fact (n)
  2. (if (zerop n) 3.14
  3. (* n (fact (1- n)))))
  4.  
  5. (defun sum (n)
  6. (loop for i from 1 to n summing (fact i)))
  7.  
  8. (print (sum 7))
Success #stdin #stdout 0.03s 10592KB
stdin
Standard input is empty
stdout
18566.818