#include <bits/stdc++.h>
#pragma warning(disable : 4996)
using namespace std;
int IT_MAX = 1 << 17;
const long long MOD = 1000000007;
const int INF = 1034567890;
const long long LL_INF = 1234567890123456789ll;
const double PI = acos(-1);
const long double ERR = 1E-10;
int gcd(int a, int b) { return (a == 0) ? b : gcd(b % a, a); }
int main() {
  int N, K, i, t1, t2, t3;
  scanf("%d %d", &N, &K);
  t1 = K;
  for (i = 1; i <= N; i++) {
    scanf("%d", &t2);
    t2 /= gcd(K / t1, t2);
    t1 /= gcd(t1, t2);
  }
  if (t1 == 1)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
