#include using namespace std; int main(){ int n,h,x; cin>>n>>h; while(n--)cin>>x,h/=__gcd(h,x); cout<<(h==1?"YES":"NO")<