require 'prime' if gets.to_i.prime_division.size<=2 then puts "Yes" else puts "No" end