Guest User

Untitled

a guest
Jul 1st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.13 KB | None | 0 0
  1. (defun prime? (x &optional (n 0))
  2.    (if (<= n x)
  3.       (if (not (mod x n))
  4.          (prime? x (n + 1))
  5.         true)
  6.      false))
Add Comment
Please, Sign In to add comment