import math n, k = map(int,input().split()) a = list(map(int,input().split())) d = 1 for i in range(n): g = math.gcd(a[i], k) d = d // math.gcd(g, d) * g if d == k: print("Yes") else: print("No")