from math import gcd def lcm(x, y): return (x * y) // gcd(x, y) N,X = map(int,input().split()) C = list(map(int,input().split())) lc = C[0] for i in range(1,N): lc = lcm(lc,C[i]) M = lc/X if M.is_integer(): print("Yes") else: print("No")