n, h = map(int, input().split()) al = list(map(int, input().split())) mod = 1 for a in al: mod *= h%a print('YES' if mod == 0 else 'NO')