#include #include using namespace std; int main() { int n, h; cin >> n >> h; for (int i = 0; i < n; i++) { int a; cin >> a; h /= gcd(h, a); } puts(h == 1 ? "YES" : "NO"); }