n,h=gets.split(" ").map{|e| e.to_i}
gets.split(" ").map{|e| e.to_i}.each{|e|
	h=h/h.gcd(e)
}
if h==1 then
	puts "YES"
else
	puts "NO"
end