#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) { return !a ? b : gcd(b % a, a); }
int N, K;
void init() {}
void work() {
  int c, S = 1;
  while (N--) {
    scanf("%d", &c);
    c = gcd(K, c);
    S = S / gcd(S, c) * c;
  }
  puts(S == K ? "Yes" : "No");
}
int main() {
  int T;
  while (~scanf("%d%d", &N, &K)) {
    init();
    work();
  }
  return 0;
}
