n, h = map(int, input().split())
a = list(map(int, input().split()))

def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a%b)
    

for i in range(n):
    g = gcd(h, abs(a[i]))
    h /= g

print("YES" if h == 1 else "NO")