#include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; using ull = unsigned long long; ll mod = 1e9 + 7; long long gcd(long long a,long long b){ long long x=max(a,b),y=min(a,b); if(x%y==0)return y; else return gcd(y,x%y); } long long lcm(long long a,long long b){ return (a/gcd(a,b))*b; } int main(){ cin.tie(0); ios::sync_with_stdio(false); int n , h; cin >> n >> h; vector a(n); for(int i = 0; i < n; i++){ cin >> a[i]; } sort(a.begin() , a.end()); for(int i = 0; i < n; i++){ h = h / gcd(h , a[i]); if(h == 1){ cout << "YES" << endl; return 0; } } cout << "NO" << endl; return 0; }