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