n, k = map(int, input().split()) a = list(map(int, input().split())) # Check if k is already present in the list if k in a: print("Yes") exit() def gcd(a, b): while b: a, b = b, a % b return a # Calculate the GCD of all absolute values of the elements current_gcd = 0 for num in a: current_gcd = gcd(current_gcd, abs(num)) # Handle the case where all elements are zero if current_gcd == 0: if k == 0: print("Yes") else: print("No") else: # Check if k is a multiple of the GCD if k % current_gcd == 0: print("Yes") else: print("No")