#include <bits/stdc++.h>
using namespace std;
const int P = 1e9 + 7, INF = 0x3f3f3f3f;
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
long long qpow(long long a, long long n) {
  long long r = 1 % P;
  for (a %= P; n; a = a * a % P, n >>= 1)
    if (n & 1) r = r * a % P;
  return r;
}
long long inv(long long first) {
  return first <= 1 ? 1 : inv(P % first) * (P - P / first) % P;
}
inline int rd() {
  int first = 0;
  char p = getchar();
  while (p < '0' || p > '9') p = getchar();
  while (p >= '0' && p <= '9') first = first * 10 + p - '0', p = getchar();
  return first;
}
const int N = 1e6 + 50;
int n, k, vis[N];
vector<int> A, B, C;
int chk(int first) {
  for (int i = 2; i * i <= first; ++i)
    if (first % i == 0) return 0;
  return 1;
}
int main() {
  scanf("%d%d", &n, &k);
  if (k > 4e6) return puts("No"), 0;
  int l = 1, r = 3e5 + 10, mx = 0;
  while (l <= r) {
    int now = 0;
    for (int i = 2; i <= ((l + r) >> 1); ++i) now += ((l + r) >> 1) / i;
    if (now >= k)
      mx = ((l + r) >> 1), r = ((l + r) >> 1) - 1;
    else
      l = ((l + r) >> 1) + 1;
  }
  if (mx > n) return puts("No"), 0;
  n = mx;
  int now = 0;
  for (int i = 2; i <= n; ++i) {
    if (chk(i)) {
      if (i * 2 > n)
        A.push_back(i);
      else if (i * 3 > n)
        B.push_back(i);
      else if (i * 4 > n)
        C.push_back(i);
    }
    now += n / i;
  }
  int u = now - k, fa = A.size(), fb = min((int)B.size(), u / 2),
      fc = min((int)C.size(), u / 3);
  for (int i = 0; i <= fa; ++i)
    for (int j = 0; j <= fb; ++j)
      for (int k = 0; k <= fc; ++k)
        if (i + 2 * j + 3 * k == u) {
          for (int t = 0; t <= i - 1; ++t) vis[A[t]] = 1;
          for (int t = 0; t <= j - 1; ++t) vis[B[t]] = 1;
          for (int t = 0; t <= k - 1; ++t) vis[C[t]] = 1;
          goto E;
        }
  throw;
E:;
  puts("Yes");
  int cnt = 0;
  for (int i = 1; i <= n; ++i)
    if (!vis[i]) ++cnt;
  printf("%d\n", cnt);
  for (int i = 1; i <= n; ++i)
    if (!vis[i]) printf("%d ", i);
  putchar(10);
}
