#include using namespace std; using ll = long long; int N; ll K, A[202020]; template T gcd(T a, T b){ if(b == 0)return a; return gcd(b, a % b); } template T lcm(T a, T b){ return a * b / gcd(a, b); } int main(void){ ios::sync_with_stdio(false); cin.tie(nullptr); cin >> N >> K; __int128_t g = 1; for(int i = 0;i < N;i++){ ll a; cin >> a; __int128_t k = gcd(K, a); g = lcm(g, k); g = gcd((__int128_t)K, g); } cout << (g == K ? "Yes\n" : "No\n"); return 0; }