# import pypyjit # pypyjit.set_param("max_unroll_recursion=-1") from collections import * from functools import * from itertools import * from heapq import * import sys, math # sys.setrecursionlimit(3*10**5) input = sys.stdin.readline N,K = map(int,input().split()) A = list(map(int,input().split())) g = 1 for a in A: g = g*a//math.gcd(g,a) g = math.gcd(g,K) if g==K: print('Yes') else: print('No')