bufio_scanner = [] def main(): n, h = [int(fmt_scan()) for _ in range(2)] a = [int(x) for x in input().split()] for i, v in enumerate(a): if h % v == 0: h //= v a[i] = 1 ans = "NO" for v in a: if v % h == 0: ans = "YES" print(ans) def fmt_scan() -> str: sc = bufio_scanner if len(sc) == 0: for v in reversed(input().split()): sc.append(v) return sc.pop() main()