# Here your code ! require 'prime' a=gets.to_i if a.prime? then puts "YES" else puts "NO" end