#include <bits/stdc++.h>
using namespace std;
template <typename T>
T sqr(T x) {
  return x * x;
}
template <typename T>
T gcd(T a, T b) {
  return b ? gcd(b, a % b) : a;
}
const int MAXN = (int)1e6 + 10;
int n, k;
int a[MAXN], us[MAXN];
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n >> k;
  for (int i = 1; i <= n; i++) cin >> a[i], us[a[i]] = true;
  if (us[k]) {
    cout << "Yes";
    return 0;
  }
  for (int i = 2; i <= k; i++)
    if (k % i == 0) {
      int st = 1;
      bool flag = false;
      while (k % i == 0) st *= i, k /= i;
      for (int j = st; j <= (int)1e6; j += st)
        if (us[j]) flag = true;
      if (!flag) {
        cout << "No";
        return 0;
      }
    }
  cout << "Yes";
}
