#define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; int N; ll K; int main() { cin >> N >> K; vector g(N); for(int i = 0; i < N; ++i) { ll a; cin >> a; g[i] = gcd(a,K); } ll ans = 1; for(int i = 0; i < N; ++i) ans = ans/gcd(ans,g[i])*g[i]; cout << (ans == K ? "Yes" : "No") << endl; }