############################################################# import sys sys.setrecursionlimit(10**7) from heapq import heappop,heappush from collections import deque,defaultdict,Counter from bisect import bisect_left, bisect_right from itertools import product,combinations,permutations from math import gcd ipt = sys.stdin.readline def iin(): return int(ipt()) def lmin(): return list(map(int,ipt().split())) MOD = 998244353 ############################################################# N,K = lmin() A = lmin() l = 1 for a in A: g = gcd(a,K) l = g*l//gcd(g,l) if l == K: print("Yes") else: print("No")