#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); for (auto &&a : as) { cin >> a; } 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) { cout << "YES" << endl; return 0; } } cout << "NO" << endl; return 0; }