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