#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
long long lcm(long long a, long long b) { return a / gcd(a, b) * b; }
int main() {
  ios::sync_with_stdio(false);
  long long n, k, tmp, l = 1, g;
  cin >> n >> k;
  for (int i = 0; i < n; i++) {
    cin >> tmp;
    g = gcd(tmp, k);
    l = lcm(l, g);
  }
  if (l == k)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
