n, k = read_line.split.map(&.to_i64) a = read_line.split.map(&.to_i64).map { |v| v.gcd(k) } lcm = a.reduce(1i64) { |acc, v| acc.lcm(v) } puts k == lcm ? "Yes" : "No"