#include using namespace std; void fast_io() { ios::sync_with_stdio(false); std::cin.tie(nullptr); } int main() { fast_io(); int n; long long k; cin >> n >> k; vector a(n); long long l = 1; for (int i = 0; i < n; i++) { cin >> a[i]; l = lcm(l, gcd(k, a[i])); } cout << (l == k ? "Yes" : "No") << endl; }