#include using namespace std; int N,H; vectorA; bool check(int i){ int H_sum=0; while(H%i==0) H/=i,H_sum++; int N_sum=0; for(int j:A){ if(j==0)return true; while(j%i==0) j/=i,N_sum++; } if(H_sum>N_sum)return false; return true; } bool solve(){ for(int i=2;i*i<=H;i++){ if(H%i==0 && !check(i)) return false; } return H==1?true:check(H); } int main(){ cin>>N>>H; A.resize(N); for(int i=0;i>A[i]; puts(solve()?"YES":"NO"); }