#include <bits/stdc++.h>
using namespace std;
int n, k;
int main() {
  scanf("%d %d", &n, &k);
  if (k < n / 2) {
    printf("-1\n");
    return 0;
  }
  if (n == 1) {
    if (k > 0)
      printf("-1\n");
    else
      printf("%d\n", (rand() % (int)1e+9) + 1);
    return 0;
  }
  int rem = k - n / 2;
  printf("%d %d", rem + 1, (rem + 1) * 2);
  int cur = 1;
  for (int i = 3; i <= n; ++i) {
    if (cur == rem + 1) cur += 2;
    printf(" %d", cur);
    cur += 2;
  }
  printf("\n");
  return 0;
}
