#include #include #define rep(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++) using namespace std; using namespace atcoder; typedef long long ll; int main() { int n; ll k; cin >> n >> k; ll lc = 1; rep(i, 0, n) { ll x; cin >> x; x = gcd(x, k); lc = gcd(lc, k); lc = lcm(lc, x); lc = gcd(lc, k); } if (k == lc) cout << "Yes" << endl; else cout << "No" << endl; }