#include <bits/stdc++.h>
using namespace std;
long long a[1000001] = {0};
int main() {
  long long i, j, k, d, l, m, n, f, f1;
  f = 0;
  cin >> n >> k;
  for (i = 1; i <= n; i++) {
    scanf("%i", &a[i]);
  }
  f1 = 0;
  for (j = 2; j <= k; j++)
    if (k % j == 0) {
      d = 1;
      while (k % j == 0) {
        d = d * j;
        k = k / j;
      }
      f = 0;
      for (i = 1; i <= n; i++)
        if (a[i] % d == 0) f = 1;
      if (f == 0) f1 = 1;
    }
  if (f1 == 0)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
