#include <bits/stdc++.h>
using namespace std;
template <class T>
void read(T& num) {
  char CH;
  bool F = false;
  for (CH = getchar(); CH < '0' || CH > '9'; F = CH == '-', CH = getchar())
    ;
  for (num = 0; CH >= '0' && CH <= '9';
       num = num * 10 + CH - '0', CH = getchar())
    ;
  F && (num = -num);
}
int stk[70], tp;
template <class T>
inline void print(T p) {
  if (!p) {
    puts("0");
    return;
  }
  while (p) stk[++tp] = p % 10, p /= 10;
  while (tp) putchar(stk[tp--] + '0');
  putchar('\n');
}
const long long mod = 1e9 + 7;
const double PI = acos(-1.0);
const long long inf = 1e18;
const int N = 1e6 + 20;
const int maxn = 1005;
const double eps = 1e-10;
int n, k;
long long c[N];
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int main() {
  read(n);
  read(k);
  long long lcm = 1;
  for (int i = 1; i <= n; i++) {
    read(c[i]);
    lcm = c[i] / gcd(lcm, c[i]) * lcm;
    lcm %= k;
  }
  if (lcm == 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
