Guest User

Untitled

a guest
Jun 24th, 2011
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn prime?
  2.   ([num] (prime? num 2 (/ num 2)))
  3.   ([num cur end]
  4.      (cond
  5.       (<= num 2) true
  6.       (= cur end) true
  7.       (= 0 (mod num cur)) false
  8.       )
  9.      (recur num (+ cur 1) end)
  10.      )
  11.   )
Advertisement
Add Comment
Please, Sign In to add comment