#include <bits/stdc++.h>
using namespace std;
int g(int n) {
  int ans = 0;
  for (int i = 1; i <= n; i++) {
    ans += (n / i) - 1;
  }
  return ans;
}
int fac(int n) {
  int ans = 0;
  for (int i = 1; i * i <= n; i++) {
    if (n % i == 0) {
      ans += 1 + (i * i != n && i != 1);
    }
  }
  return ans;
}
vector<int> vals, pref;
vector<int> solve(int N, int k) {
  int needy = pref[N] - k;
  set<int> ans;
  vector<pair<int, int> > gg;
  for (int j = (N + 2) / 2; j <= N; j++) {
    if (vals[j] <= needy) {
      gg.push_back({vals[j], j});
    }
  }
  sort((gg).begin(), (gg).end());
  reverse((gg).begin(), (gg).end());
  for (auto u : gg) {
    if (u.first <= needy) {
      ans.insert(u.second);
      needy -= u.first;
    }
  }
  vector<int> ret;
  for (int i = 1; i <= N; i++) {
    if (ans.find(i) == ans.end()) {
      ret.push_back(i);
    }
  }
  assert(needy == 0);
  return ret;
}
int val(vector<int> g) {
  int ans = 0;
  for (int i = 0; i < g.size(); i++) {
    for (int j = 0; j < g.size(); j++) {
      if (g[i] < g[j] && g[j] % g[i] == 0) {
        ans++;
      }
    }
  }
  return ans;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, k;
  cin >> n >> k;
  if (g(n) < k) {
    cout << "No\n";
    return 0;
  }
  cout << "Yes\n";
  vals.resize(n + 1, 0), pref.resize(n + 1, 0);
  long long my_val = -1;
  for (int i = 2; i <= n; i++) {
    vals[i] = fac(i);
    pref[i] = pref[i - 1] + vals[i];
    if (pref[i] >= k) {
      my_val = i;
      break;
    }
  }
  assert(my_val != -1);
  vector<int> ans = solve(my_val, k);
  cout << ans.size() << '\n';
  for (auto u : ans) {
    cout << u << ' ';
  }
  return 0;
}
