N, H = gets.split.map(&:to_i) A = gets.split.map(&:to_i) h = H if A.include?(0) puts 'YES' exit end A.each do |a| g = h.gcd(a) h /= g if h == 1 puts 'YES' exit end end puts 'NO'