import sys input=sys.stdin.readline def I(): return int(input()) def MI(): return map(int, input().split()) def LI(): return list(map(int, input().split())) def main(): mod=10**9+7 N,H=MI() A=LI() from math import gcd for i in range(N): g=gcd(A[i],H) H=H//g if H==1: print("YES") else: print("NO") main()