#include <bits/stdc++.h>
int n, k, c, g, g2, cur = 1;
int gcd(int a, int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int main() {
  scanf("%d%d", &n, &k);
  for (int i = 0; i < n; i++) {
    scanf("%d", &c);
    g = gcd(c, k);
    g2 = gcd(g, cur);
    cur = cur / g2 * g;
    if (cur % k == 0) {
      printf("Yes");
      return 0;
    }
  }
  printf("No");
  return 0;
}
