def gcd(a,b): if b==0:return a return gcd(b,a%b) N,K = map(int,input().split()) A = list(map(int,input().split())) a = 1 for i in range(N): d1 = gcd(a,A[i]) b = A[i]//d1 d = gcd(b,K) a = a*d K = K//d if K==1:break if K==1: print("Yes") else: print("No")