n,h=map(int,input().split()) a=list(map(int,input().split())) ans=1 for i in range(n): ans=(ans*a[i])%h if ans==0: print('Yes') else: print('No')