#include int gcd(int a, int b) { int r = a % b; while (r > 0) { a = b; b = r; r = a % b; } return b; } int main() { int n, h; scanf("%d %d", &n, &h); int i; int a[200005]; for (i = 0; i < n; i++) scanf("%d", &a[i]); for (i = 0; i < n; i++) { if (a[i] == 0) h = 1; else h /= gcd(a[i], h); } if (h == 1) printf("YES\n"); else printf("NO\n"); return 0; }