#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  while (b) {
    a %= b;
    swap(a, b);
  }
  return a;
}
long long lcm(long long a, long long b) { return 1ll * a / gcd(a, b) * b; }
int n;
long long k, c;
long long L = 1ll;
int main() {
  cin >> n >> k;
  for (int i = 1; i <= n; i++) {
    scanf("%I64d", &c);
    L = lcm(L, gcd(c, k));
    if (L == k) {
      cout << "Yes";
      return 0;
    }
  }
  cout << (L == k ? "Yes" : "No");
  return 0;
}
