#include <bits/stdc++.h>
using namespace std;
int c[100010];
int main() {
  int n, k;
  scanf("%d%d", &n, &k);
  if ((n == 1) && (k != 0)) {
    printf("-1\n");
    return 0;
  }
  if (k < (n / 2))
    printf("-1\n");
  else if (k == (n / 2)) {
    for (int i = 1; i <= n; ++i) {
      c[i] = i;
      printf("%d ", c[i]);
    }
    printf("\n");
  } else {
    int t = k - (n / 2) + 1;
    c[1] = t;
    c[2] = 2 * t;
    for (int i = 3; i <= n; ++i) c[i] = c[2] + i;
    for (int i = 1; i <= n; ++i) printf("%d ", c[i]);
    printf("\n");
  }
  return 0;
}
