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 if 0 in a: ans = "YES" else: def factor(num): d = defaultdict(int) while num>1: 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 = factor(h) if all(d2[k]<=d[k] for k in d2.keys()): ans = "YES" else: ans = "NO" print(ans)