#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const int N = 1e9;
const int MOD = 1000000007;
int n, k;
int main() {
  cin >> n >> k;
  if (n == 1 && k == 0) {
    printf("1");
    return 0;
  }
  if (n == 1 || n / 2 > k) {
    printf("-1");
    return 0;
  }
  int num = k - n / 2 + 1;
  int cnt = 2;
  cout << num << " " << 2 * num << " ";
  for (int j = 1, i = 1; j <= n - 2; i++) {
    if (i != num && i != num * 2) {
      printf("%d ", i);
      j++;
    }
  }
  return 0;
}
