#include #define fastIO (cin.tie(0), cout.tie(0), ios::sync_with_stdio(false)) using namespace std; vector divEnumerate(int num) { vector res; if (num == 1) { res.emplace_back(1); return res; } for (int i = 2; i * i <= num;) { if (num % i == 0) { res.emplace_back(i); num /= i; } else { i == 2 ? i++ : i += 2; } } res.emplace_back(num); return res; } int main() { fastIO; int n, h; cin >> n >> h; vector A(n); for (auto &a : A) cin >> a; sort(A.begin(), A.end()); reverse(A.begin(), A.end()); for (const auto mod : A) { if (h % mod == 0) { h /= mod; } if (h == 1 || h == mod) { cout << "YES" << '\n'; return 0; } } cout << "NO" << '\n'; return 0; }