Guest User

Untitled

a guest
Sep 19th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.23 KB | None | 0 0
  1. (defun n+np (x n)
  2.   ;;if x it's a multiple of n (x=n+np) --> 1 else 0.
  3.   ;;but p>0 (p=1,2,3...)
  4.   (check-type x integer)
  5.   (check-type n integer)
  6.   (locally (declare (integer  x n))
  7.     (if (and (> x n) (zerop (mod x n))) 1 0)))
Add Comment
Please, Sign In to add comment