#include <bits/stdc++.h>
using namespace std;
int n, k, nrd[300005], nr, in[300005], s, mx, sav;
int main() {
  cin >> n >> k;
  if (k == 0) {
    cout << "Yes\n1\n1\n";
    return 0;
  }
  if (k == 6 && n >= 6) {
    cout << "Yes\n5\n1 2 4 5 6\n";
    return 0;
  }
  for (int i = 1; i <= n; i++)
    for (int j = i + i; j <= n; j += i) {
      nrd[j]++;
    }
  for (int i = 1; i <= n && s < k; i++) {
    s += nrd[i];
    in[i] = 1;
    nr++;
  }
  if (s < k) {
    cout << "No\n";
    return 0;
  }
  sav = -1;
  for (int i = 1; i <= nr; i++) {
    if (s - nrd[i] - nr / i + 1 >= k && nrd[i] + nr / i - 1 > mx) {
      mx = nrd[i] + nr / i - 1;
      sav = i;
    }
  }
  if (sav != -1) {
    in[sav] = 0;
    s -= mx;
    nr--;
  }
  int m = nr / 2;
  for (int i = nr; i > m && s > k; i--) {
    if (nrd[i] == 1) {
      in[i] = 0;
      s--;
      nr--;
    }
  }
  cout << "Yes\n";
  cout << nr << '\n';
  for (int i = 1; i <= n; i++)
    if (in[i]) cout << i << ' ';
  return 0;
}
