#include #include #define chmin(x,y) (x) = min((x),(y)) #define chmax(x,y) (x) = max((x),(y)) #define ld long double using namespace std; using namespace atcoder; using ll = long long; const ll mod = 998244353; using mint = modint998244353; //using Graph = vector>>; using Graph = vector>; const vector dx = {1,0,-1,0}, dy = {0,1,0,-1}; ll sqrtll(ll x) { assert(x >= 0); ll hi(x), lo(0); while (hi != lo) { ll y = (hi + lo + 1) / 2; if (y <= x/y) lo = y; else hi = y - 1; } return lo; } int main(){ // input int N; ll K; cin >> N >> K; vector A(N); for(int i = 0; i < N; i++) cin >> A[i]; // solve ll L = 1; for(int i = 0; i < N; i++){ ll g = __gcd(A[i],K); ll div = g / __gcd(g,L); K /= div; L *= div; } // output cout << (K == 1 ? "Yes":"No") << endl; }