using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static long[] NList => ReadLine().Split().Select(long.Parse).ToArray(); public static void Main() { Solve(); } static void Solve() { var c = NList; var (n, k) = (c[0], c[1]); var a = NList; var lcm = 1L; for (var i = 0; i < n; ++i) { if (a[i] % k == 0) { WriteLine("Yes"); return; } lcm = LCM(lcm, GCD(a[i], k)); if (lcm % k == 0) { WriteLine("Yes"); return; } } WriteLine("No"); } static long LCM(long a, long b) { checked { var gcd = GCD(a, b); return a / gcd * b; } } static long GCD(long a, long b) { if (a < b) return GCD(b, a); if (a % b == 0) return b; return GCD(b, a % b); } }