divisors = [] def make_divisors(n): for i in range(1, int(n**0.5)+1): if n % i == 0: divisors.append(i) if i != n // i: divisors.append(n//i) return 0 N, H = map(int, input().split()) l_A = list(map(int, input().split())) for li in l_A: make_divisors(abs(li)) divisors = set(divisors) ans = [] for i in range(1, int(H**0.5)+1): if H % i == 0: ans.append(i) if i != H // i: ans.append(H//i) if len(divisors) == len(set(list(divisors) + ans)): print("YES") else: print("NO")