#include <bits/stdc++.h>
using namespace std;
int n, k, m, q;
int vis[300002], pri[300002];
int h[10002], g[10002], cnt[10002], sta[10002];
long long f[300002];
void init(int t) {
  q = 0;
  for (int i = 2; i <= t; ++i) {
    if (!vis[i]) pri[++q] = i;
    for (int j = 1; j <= q && pri[j] * i <= t; ++j) {
      vis[pri[j] * i] = 1;
      if (i % pri[j] == 0) break;
    }
  }
}
int main() {
  scanf("%d%d", &n, &k);
  for (int i = 1; i <= n; ++i) {
    for (int j = 1; i * j <= n; ++j) {
      f[i * j] += 1LL * j;
      if (i * (j + 1) <= n) f[i * (j + 1)] -= 1LL * j;
    }
  }
  for (int i = 1; i <= n; ++i) f[i] += f[i - 1];
  for (int i = 1; i <= n; ++i) f[i] -= 1LL * i;
  int t = 0;
  for (int i = 1; i <= n; ++i)
    if (f[i] >= k) {
      t = i;
      break;
    }
  if (!t) {
    printf("No");
    return 0;
  }
  if (f[t] == k) {
    printf("Yes\n%d\n", t);
    for (int i = 1; i <= t; ++i) printf("%d ", i);
    return 0;
  }
  int s = f[t];
  init(t);
  for (int i = q; i >= 1; --i) {
    if (pri[i] * 2 > t) {
      s--;
      if (s == k) {
        printf("Yes\n%d\n", t - q + i - 1);
        int x = i;
        for (int j = 1; j <= t; ++j)
          if (x <= q && pri[x] == j)
            x++;
          else
            printf("%d ", j);
        return 0;
      }
    } else
      break;
  }
  h[0] = 1;
  int m = f[t] - k;
  for (int i = 1; i <= q; ++i) {
    g[i] = t / pri[i];
    for (int j = m; j >= g[i]; --j)
      if (!h[j] && h[j - g[i]]) h[j] = 1, cnt[j] = i;
  }
  if (h[m]) {
    printf("Yes\n");
    int dep = 0;
    while (m) sta[++dep] = pri[cnt[m]], m -= g[cnt[m]];
    printf("%d\n", t - dep);
    int x = dep;
    for (int i = 1; i <= t; ++i)
      if (x && i == sta[x])
        x--;
      else
        printf("%d ", i);
  } else
    printf("No");
  return 0;
}
