#include <bits/stdc++.h>
using namespace std;
class ProblemDRemaindersGame {
 public:
  long long int gcd(long long int a, long long int b) {
    return a % b == 0 ? b : gcd(b, a % b);
  }
  long long int lcm(long long int a, long long int b) {
    return (1LL * a * b) / gcd(a, b);
  }
  void solve(std::istream& in, std::ostream& out) {
    long long int n, k;
    in >> n >> k;
    long long int cur = 1;
    for (int i = 0; i < n; ++i) {
      long long int x;
      in >> x;
      cur = gcd(k, lcm(cur, x));
    }
    if (cur == k)
      out << "Yes";
    else
      out << "No";
  }
};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ProblemDRemaindersGame solver;
  std::istream& in(std::cin);
  std::ostream& out(std::cout);
  solver.solve(in, out);
  return 0;
}
