#include <bits/stdc++.h>
using namespace std;
vector<vector<int>> eg;
int32_t main() {
  ios::sync_with_stdio(false);
  long long n, k;
  cin >> n >> k;
  vector<long long> c(n);
  for (auto& i : c) cin >> i;
  vector<long long> f;
  vector<long long> fp;
  for (long long i = 2; k != 1; i++) {
    if (k % i == 0) {
      f.push_back(1);
      fp.push_back(0);
      while (k % i == 0) {
        k /= i;
        f.back() *= i;
        fp.back()++;
      }
    }
  }
  bool ok = true;
  for (long long i : f) {
    bool can = false;
    for (long long j : c) can = can || (j % i == 0);
    if (!can) {
      ok = false;
      break;
    }
  }
  if (ok) {
    cout << "Yes";
  } else
    cout << "No";
  return 0;
}
