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