#include #include using ll = long long; using ull = unsigned long long; #define rep(i, n) for(int i = 0; i < (int)(n); i++) #define REP(i, m, n) for(int i = (int)(m); i < (int)(n); i++) using namespace std; using namespace atcoder; using mint = modint998244353; const int inf = 1000000007; const ll longinf = 1ll << 60; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n; cin >> n; ll k; cin >> k; ll l = 1; rep(i, n) { ll x; cin >> x; l = lcm(l, gcd(x, k)); } if(l == k) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }