J=lambda:map(int,input().split()) N,K=J() A=1 for i in J(): p,a=A*i while A:A,a=a,A%a A=p//a print("YNeos"[A%K>0::2])