#include using namespace std; int gcd(int a, int b) { if (a%b == 0) { return(b); } else { return(gcd(b, a%b)); } } int main() { int n, h; cin >> n >> h; for (int i = 0; i < n; i++) { int a; cin >> a; h /= gcd(a, h); if (h == 1) { cout << "YES" << endl; return 0; } } cout << "NO" << endl; }