from math import lcm N, K = map(int, input().split()) A = list(map(int, input().split())) l = A[0] for i in A[1:]: l = lcm(l, i) print("Yes" if l % K == 0 else "No")