(use math.prime) (let* ((n (read))) (print (if (small-prime? n) "YES" "NO")))