import sys input = lambda : sys.stdin.readline().rstrip() sys.setrecursionlimit(max(1000, 10**9)) write = lambda x: sys.stdout.write(x+"\n") n,h = list(map(int, input().split())) a = list(map(int, input().split())) def hurui(n): pl = [] mpf = [None]*(n+1) for d in range(2,n): if mpf[d] is None: mpf[d] = d pl.append(d) for p in pl: if p*d>n or p>mpf[d]: break mpf[p*d] = p return pl, mpf from collections import defaultdict def factor2(n, m=None): # mを与えると、高々その素因数まで見て、残りは分解せずにそのまま出力する f = {} tmp = n M = int(-(-n**0.5//1))+1 if m is not None: M = min(m+1, M) for i in range(2, M+1): if tmp1: d[mpf[num]] += 1 num //= mpf[num] return d pl, mpf = hurui(max(a)+10) d = defaultdict(int) for num in a: dd = factor(abs(num)) for k,v in dd.items(): d[k] += v d2 = factor2(h) if all(d2[k]<=d[k] for k in d2.keys()): ans = "YES" else: ans = "NO" print(ans)