def Map(): return list(map(int,input().split())) def gcd(a, b): while a != 0: b %= a if b == 0: return a a %= b return b N,K = Map() A = Map() for i in range(N): A[i] = gcd(A[i],K) g = A[0] l = A[0] for i in range(1,N): g = gcd(g,A[i]) l *= A[i] l //= g if l == K: print('Yes') else: print('No')