import math n,h=map(int,input().split()) l=list(map(int,input().split())) a="NO" for x in l: h//=math.gcd(h,x) if h==1: a="YES"; break print(a)