#include using namespace std; using ll = long long; using llu = long long unsigned; int main() { ll N, K; cin >> N >> K; vector A(N); for (auto &x : A) { cin >> x; } ll target = 1; for (auto x : A) { ll tmp = gcd(K, x); target *= (tmp/(gcd(target, x))); if (K == target) { break; } } if (K == target) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }