import sys sys.setrecursionlimit(5*10**5) input = sys.stdin.readline from collections import defaultdict, deque, Counter from heapq import heappop, heappush from bisect import bisect_left, bisect_right from math import gcd n,k = map(int,input().split()) a = list(map(int,input().split())) now = 1 for i in range(n): now = now*a[i]//gcd(now, a[i]) if now % k == 0: print('Yes') else: print('No')