#include <bits/stdc++.h>
using namespace std;
long long n, k, c;
long long ucln(long long a, long long b) {
  long long r;
  while (b != 0) {
    r = a % b;
    a = b;
    b = r;
  }
  return a;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> n >> k;
  long long tam = 1;
  while (n--) {
    cin >> c;
    tam = (tam * c) / ucln(tam, c);
    tam = ucln(tam, k);
    if (tam == k) break;
  }
  if (tam == k)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
