#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 1000000 + 10;
int n, k;
int gcd(int a, int b) {
  while (a > 0 && b > 0) {
    if (a > b)
      a %= b;
    else
      b %= a;
  }
  return a + b;
}
int lcm(int a, int b) { return a / gcd(a, b) * b; }
int main() {
  cin >> n >> k;
  int c = 1;
  for (int i = 1; i <= n; i++) {
    int x;
    scanf("%d", &x);
    int g = gcd(x, k);
    c = lcm(c, g);
  }
  puts(c == k ? "Yes" : "No");
  return 0;
}
