#include <bits/stdc++.h>
using namespace std;
const int CMax = 100002;
int n, k, sk, sk2, pr = 0;
int main() {
  scanf("%d %d", &n, &k);
  if (k < n / 2 || (n == 1 && k > 0)) {
    printf("-1\n");
    return 0;
  }
  if (n == 1) {
    printf("1\n");
    return 0;
  }
  if (k == n / 2) {
    printf("1 2");
    for (int i = 2; i <= n / 2; i++) {
      printf(" %d %d", i * 2 - 1, i * 2);
    }
    if (n % 2 > 0) printf(" %d", n * 2 + 1);
    printf("\n");
  } else {
    sk = k - n / 2 + 1;
    sk2 = sk * 2;
    printf("%d %d", sk, sk2);
    for (int i = 1; i < n / 2; i++) {
      if (i * 2 - 1 + pr == sk || i * 2 + pr == sk || i * 2 + pr == sk2 ||
          i * 2 - 1 + pr == sk2)
        pr++;
      if (i * 2 - 1 + pr == sk || i * 2 + pr == sk || i * 2 + pr == sk2 ||
          i * 2 - 1 + pr == sk2)
        pr++;
      if (i * 2 - 1 + pr == sk || i * 2 + pr == sk || i * 2 + pr == sk2 ||
          i * 2 - 1 + pr == sk2)
        pr++;
      if (i * 2 - 1 + pr == sk || i * 2 + pr == sk || i * 2 + pr == sk2 ||
          i * 2 - 1 + pr == sk2)
        pr++;
      printf(" %d %d", i * 2 - 1 + pr, i * 2 + pr);
    }
    if (n % 2 > 0) {
      if (n * 2 + pr == sk || n * 2 + pr == sk2) pr++;
      if (n * 2 + pr == sk || n * 2 + pr == sk2) pr++;
      if (n * 2 + pr == sk || n * 2 + pr == sk2) pr++;
      if (n * 2 + pr == sk || n * 2 + pr == sk2) pr++;
      printf(" %d", n * 2 + pr);
    }
    printf("\n");
  }
}
