#include using namespace std; #include typedef boost::multiprecision::cpp_int mp; int natural_gcd(int a,int b){ int m=min(a,b),M=max(a,b); int temp; while(m>0){ temp=m; m=M%m; M=temp; } return M; } int main(){ int N,H; cin>>N>>H; for(int i=0;i!=N;++i){ int A; cin>>A; if(A==0){ H=1; break; } H/=natural_gcd(H,abs(A)); } cout<<(H==1?"YES":"NO")<