from math import gcd n, k = map(int, input().split()) A = list(map(int, input().split())) assert 1 <= n <= 200000 assert 1 <= k <= 10**18 assert len(A) == n assert all(1 <= a <= 10**18 for a in A) lc = 1 for a in A: a = gcd(a, k) lc = lc * a // gcd(lc, a) if lc == k: print("Yes") else: print("No")