def gcd(a, b): if b == 0: return a return gcd(b, a % b) N, H = map(int, input().split()) A = list(map(int, input().split())) if 0 in A: print("YES") exit() for i in range(N): H //= gcd(H, abs(A[i])) if H == 1: print("YES") else: print("NO")