#include <bits/stdc++.h>
using namespace std;
const int N = 300010;
int n, k, a[N], ans;
int main() {
  scanf("%d%d", &n, &k);
  int sum = 0;
  for (int i = 1; i <= n; i++) {
    for (int j = i + i; j <= n; j += i) a[j]++;
    sum += a[i];
  }
  if (sum < k) {
    puts("No");
    return 0;
  }
  puts("Yes");
  sum = 0;
  int tmp;
  for (int i = 1; i <= n; i++) {
    sum += a[i];
    if (sum >= k) {
      tmp = i;
      break;
    }
  }
  ans = n = tmp;
  k = sum - k;
  for (int i = 2; i <= n; i++)
    if (k - (a[i] + n / i - 1) >= 0) {
      k -= a[i] + n / i - 1;
      a[i] = -1;
      ans--;
    }
  printf("%d\n", ans);
  for (int i = 1; i <= n; i++)
    if (a[i] >= 0) printf("%d ", i);
  return 0;
}
