fork download
  1. (defun primep (l)
  2. (labels ((fact (m &optional (n 1))
  3. (if (zerop m)
  4. n
  5. (fact (1- m) (* m n)))))
  6. (zerop (mod (1+ (fact (1- l))) l))))
  7.  
  8. (loop for x from 1 to 10000
  9. unless (primep x)
  10. sum x)
Time limit exceeded #stdin #stdout 5s 13168KB
stdin
Standard input is empty
stdout
Standard output is empty