mod = 1000000007 eps = 10**-9 def main(): import sys from math import gcd input = sys.stdin.readline N, H = map(int, input().split()) A = list(map(int, input().split())) for a in A: H //= gcd(H, a) if H == 1: print("YES") else: print("NO") if __name__ == '__main__': main()