#include <bits/stdc++.h>
using namespace std;
const int SIZE = 1e5 + 3;
const int MOD = 1e9 + 7;
const int INF = 1e9;
int n, k;
int main() {
  cin >> n >> k;
  if (n < 2 && k > 0) {
    printf("-1\n");
    return 0;
  } else if (n < 2) {
    printf("1\n");
    return 0;
  }
  bool flag = n % 2;
  int mx;
  int ones;
  n = n >> 1;
  ones = n - 1;
  k -= ones;
  if (k <= 0) {
    printf("-1\n");
    return 0;
  }
  printf("%d %d ", k, k * 2);
  mx = k * 2;
  for (int i = 0; i < ones; ++i) {
    printf("%d %d ", mx + 1, mx + 2);
    mx += 2;
  }
  if (flag) printf("%d", mx + 1);
  return 0;
}
