#include <bits/stdc++.h>
using namespace std;
long long siv[500005];
bool ans[500005];
void gen() {
  for (long long i = 2; i <= 300005; i++) {
    for (long long j = i + i; j <= 300005; j += i) {
      siv[j]++;
    }
  }
}
int main() {
  gen();
  long long n, k;
  cin >> n >> k;
  long long cnt = 0;
  long long m = -1;
  ans[1] = 1;
  for (long long i = 2; i <= n; i++) {
    cnt += siv[i] + 1;
    ans[i] = 1;
    if (cnt >= k) {
      m = i;
      break;
    }
  }
  if (m == -1) {
    cout << "No" << endl;
    return 0;
  }
  cout << "Yes" << endl;
  int tot = m;
  for (long long i = 2; i <= m; i++) {
    if (cnt == k) break;
    if (!siv[i]) {
      if (cnt - m / i < k) continue;
      ans[i] = 0;
      cnt -= m / i;
      tot--;
    }
  }
  for (long long i = m / 2 + 1; i <= m; i++) {
    if (cnt == k) break;
    if (!siv[i] && ans[i]) {
      ans[i] = 0;
      cnt--;
      tot--;
    }
  }
  cout << tot << endl;
  for (long long i = 1; i <= m; i++) {
    if (ans[i]) cout << i << " ";
  }
  cout << endl;
  return 0;
}
