import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long k = sc.nextLong(); long[] a = new long[n]; for (int i = 0; i < n; i++) { a[i] = sc.nextLong(); } sc.close(); long s = 1; for (int i = 0; i < n; i++) { long g1 = gcd(s, a[i]); a[i] /= g1; long g2 = gcd(k, a[i]); k /= g2; s = lcm(s, g2); } if (k == 1) { System.out.println("Yes"); } else { System.out.println("No"); } } static long gcd(long a, long b) { return b == 0 ? a : gcd(b, a % b); } static long lcm(long a, long b) { BigInteger ba = BigInteger.valueOf(a); BigInteger bb = BigInteger.valueOf(b); return ba.multiply(bb).divide(ba.gcd(bb)).longValue(); } }