#include using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); ll N, K, v, c = 1; cin >> N >> K; for(int i = 0; i < N; i++){ cin >> v; ll g = gcd(K, v); c = lcm(c, g); } cout << (c == K ? "Yes" : "No") << '\n'; }