#include <bits/stdc++.h>
using namespace std;
long long int gcd(long long int a, long long int b) {
  return b ? gcd(b, a % b) : a;
}
long long int lcm(long long int a, long long int b) {
  return a * b / gcd(a, b);
}
int n, k;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  clock_t z = clock();
  cin >> n >> k;
  int x = n / 2;
  if (n == 1) {
    if (k == 0) {
      cout << 1 << endl;
      return 0;
    }
    cout << -1 << endl;
    return 0;
  }
  if (x > k) return cout << -1 << endl, 0;
  int v = k - (n - 2) / 2;
  cout << v << " " << 2 * v << ' ';
  for (int i = 1; i <= n - 2; i++) cout << 1000000000 - i << " ";
  fprintf(stderr, "Total Time: %.3f\n", (double)(clock() - z) / CLOCKS_PER_SEC),
      fflush(stderr);
  return 0;
}
