#include <bits/stdc++.h>
using namespace std;
long long gcd(long long x, long long y) {
  if (x < y) {
    long long t = x;
    x = y;
    y = t;
  }
  if (y == 0) return x;
  return gcd(y, x % y);
}
int main() {
  long long n, c, k, s, t, i, j;
  scanf("%I64d%I64d", &n, &k);
  t = 1;
  for (i = 1; i <= n; i++) {
    scanf("%I64d", &c);
    t = c * t / gcd(c, t);
    t = gcd(t, k);
  }
  if (t % k != 0 || (n == 1 && k == 2 && c == 1))
    printf("No\n");
  else
    printf("Yes\n");
  return 0;
}
