#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, k;
  scanf("%d", &n);
  scanf("%d", &k);
  int p;
  p = n / 2;
  if (n == 1) {
    if (k == 0)
      printf("1");
    else
      printf("-1");
    return 0;
  }
  if (p > k) {
    cout << "-1";
    return 0;
  }
  int lebih = k - p + 1;
  int lebih2 = lebih * 2;
  cout << lebih << " " << lebih2 << " ";
  p--;
  int ctr = 1;
  while (p) {
    if (ctr != lebih && ctr != lebih2 && ctr + 1 != lebih &&
        ctr + 1 != lebih2) {
      printf("%d %d ", ctr, ctr + 1);
      p--;
    }
    ctr += 2;
  }
  if (n % 2) cout << 1000000000;
  return 0;
}
