import sys input = lambda :sys.stdin.readline()[:-1] ni = lambda :int(input()) na = lambda :list(map(int,input().split())) yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES") no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO") ####################################################################### n,k = na() a = na() from math import gcd def lcm(x, y): return (x * y) // gcd(x, y) z = 1 for i in range(n): g = gcd(a[i],k) z = lcm(z, g) if z == k: print("Yes") else: print("No")