#include <bits/stdc++.h>
inline long long read() {
  char c = getchar();
  while (c != '-' && (c < '0' || c > '9')) c = getchar();
  long long k = 0, kk = 1;
  if (c == '-') c = getchar(), kk = -1;
  while (c >= '0' && c <= '9') k = k * 10 + c - '0', c = getchar();
  return kk * k;
}
using namespace std;
void write(long long x) {
  if (x < 0) x = -x, putchar('-');
  if (x / 10) write(x / 10);
  putchar(x % 10 + '0');
}
void writeln(long long x) {
  write(x);
  puts("");
}
long long n, m, lsg, a[5000010], f[5000010], w[2][5000010], k, g, z[1000010], d;
long long ksm(long long x, long long y) {
  long long ans = 1;
  while (y) {
    if (y & 1) (ans *= x) %= lsg;
    (x *= x) %= lsg;
    y >>= 1;
  }
  return ans;
}
void FFT(long long x[], long long k, long long v) {
  long long i, j, l, d;
  for (i = 0; i < k; i++) {
    for (d = i, j = 0, l = k - 1; l; l >>= 1) j = (j << 1) + (d & 1), d >>= 1;
    if (i < j) swap(x[i], x[j]);
  }
  for (i = 2; i <= k; i <<= 1)
    for (j = 0; j < k; j += i)
      for (l = 0; l < (i >> 1); l++) {
        long long t = x[j + l + (i >> 1)] * w[v][k / i * l] % lsg;
        x[j + l + (i >> 1)] = (x[j + l] - t + lsg) % lsg;
        (x[j + l] += t) %= lsg;
      }
  if (v == 1) {
    long long inv = ksm(k, lsg - 2);
    for (i = 0; i < k; i++) (x[i] *= inv) %= lsg;
  }
}
signed main() {
  n = read();
  m = read();
  lsg = 998244353;
  for (long long i = 1; i <= n; i++) a[read()] = 1;
  while ((1 << k) - 1 < m * 2) k++;
  k = 1 << k;
  g = ksm(3, (lsg - 1) / k);
  w[0][0] = 1;
  for (long long i = 1; i <= k; i++) w[0][i] = w[0][i - 1] * g % lsg;
  for (long long i = 0; i <= k; i++) w[1][i] = w[0][k - i], f[i] = a[i];
  FFT(f, k, 0);
  for (long long i = 0; i < k; i++) (f[i] *= f[i]) %= lsg;
  FFT(f, k, 1);
  for (long long i = 1; i <= m; i++) {
    if (!f[i] && a[i]) z[++d] = i;
    if (f[i] && !a[i]) {
      puts("NO");
      return 0;
    }
  }
  for (long long i = 1; i <= d; i++)
    for (long long j = z[i]; j <= m; j += z[i])
      if (!a[j]) {
        puts("NO");
        return 0;
      }
  puts("YES");
  writeln(d);
  for (long long i = 1; i <= d; i++) write(z[i]), putchar(' ');
}
