#include <bits/stdc++.h>
long long gcd(long long a, long long b) { return a ? gcd(b % a, a) : b; }
long long lcm(long long a, long long b) { return a / gcd(a, b) * b; }
int main() {
  long long n, k, acc = 1;
  scanf("%I64i %I64i", &n, &k);
  for (long long i = 0; i < n; i++) {
    long long c;
    scanf("%I64i", &c);
    acc = gcd(k, lcm(acc, c));
  }
  printf("%s\n", (acc == k ? "Yes" : "No"));
  return 0;
}
