#include <bits/stdc++.h>
using namespace std;
int i, j, k, p, n;
void Init() {
  scanf(
      "%d"
      "%d"
      "\n",
      &n, &k);
  p = k - n / 2 + 1;
}
void Work() {
  if (n == 1) {
    if (!k)
      printf("1\n");
    else
      printf("-1\n");
    return;
  }
  if (p <= 0) {
    printf("-1\n");
    return;
  }
  printf(
      "%d"
      " "
      "%d",
      p, p * 2);
  for (i = p * 2 + 1; i <= p * 2 + n - 2; ++i)
    printf(
        " "
        "%d",
        i);
}
int main() {
  Init();
  Work();
  return 0;
}
