#include <bits/stdc++.h>
int main() {
  int n, k, i, x, n2, q, w, a1, a2;
  scanf("%d%d", &n, &k);
  n2 = n / 2;
  if (n2 > k) {
    printf("-1\n");
  } else if (n == 1) {
    if (k == 0) {
      printf("1\n");
    } else {
      printf("-1\n");
    }
  } else {
    x = k - n2 + 1;
    a1 = x;
    a2 = x + x;
    printf("%d %d ", x, x + x);
    q = 2;
    w = 1;
    for (i = 1; i < n2; ++i) {
      while (w == a1 || w + 1 == a1 || w == a2 || w + 1 == a2) ++w;
      printf("%d %d ", w, w + 1);
      w += 2;
      q += 2;
    }
    if (q < n) {
      while (w == a1 || w == a2) ++w;
      printf("%d", w);
    }
    printf("\n");
  }
  return 0;
}
