#include using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll N,K; cin>>N>>K; vector A(N,0ll); for(auto &i:A){ cin>>i; i=gcd(i,K); } ll t=1; for(ll i:A){ t=lcm(t,i); } cout<<(t==K?"Yes\n":"No\n"); }