n, h = gets.split.map(&:to_i)
gets.split.map(&:to_i).each { |i| h /= h.gcd(i) }
puts h == 1 ? 'YES' : 'NO'