#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { int32_t n, h; cin >> n >> h; vector as(n); bool f = false; for (auto &&a : as) { cin >> a; a = abs(a); f = a == 0; } if (f) { cout << "NO" << endl; return 0; } for (auto a : as) { for (auto i = 2; i * i <= a; ++i) { if (a % i != 0) continue; a /= i; if (h % i != 0) continue; h /= i; if (h == 1) break; } if (a > 1 && h % a == 0) h /= a; if (h == 1) break; } cout << (h == 1 ? "YES" : "NO") << endl; return 0; }