#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);
}
int main(void) {
  int n, k;
  while (scanf("%d %d", &n, &k) != EOF) {
    int i, c;
    long long g, l = 1;
    for (i = 0; i < n; i++) {
      scanf("%d", &c);
      g = gcd(c, k);
      l = l * g / gcd(l, g);
    }
    if (l == k)
      printf("Yes\n");
    else
      printf("No\n");
  }
  return 0;
}
