#include #include using namespace std; long gcd(long a,long b) { while(b) { long t=a%b; a=b; b=t; } return a; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int N; long K; cin>>N>>K; long T=1; for(int i=0;i>A; A=gcd(K,A); T=T/gcd(T,A)*A; } cout<<(K==T?"Yes":"No")<