#include using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } int main() { fast_io(); int n, h; cin >> n >> h; for (int i = 0; i < n; i++) { int a; cin >> a; if (a < 0) { a *= -1; } h /= gcd(h, a); } cout << (h == 1 ? "YES" : "NO") << endl; }