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) l=1 for a in A: l=lcm(l,a) if l%K==0:print("Yes") else:print("No")