require 'prime' puts gets.to_i.prime? ? "YES" : "NO"