#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:10000000")
using namespace std;
int cur, A[200000];
int main() {
  int n, k;
  scanf("%d %d", &n, &k);
  if (n == 1) {
    if (k == 0)
      printf("1\n");
    else
      printf("-1\n");
    return 0;
  };
  if (k < n / 2)
    printf("-1\n");
  else {
    for (int i = 1; i <= n / 2 - 1; i++) printf("%d %d ", 2 * i - 1, 2 * i);
    k -= (n / 2 - 1);
    int new_v = k;
    while (new_v <= n) new_v += k;
    printf("%d %d ", new_v, new_v + k);
    if (n % 2) printf("%d\n", 1000000000);
  };
  return 0;
};
