#include <bits/stdc++.h>
using namespace std;
const long long int maxN = 1e5 + 100;
const long long int mod = 1e9 + 7;
const long long int hmod = 1e16 + 7;
const long long int R = 1379;
const long long int INF = 1e18 + 20;
const long long int Inf = 1e9 + 140;
long long int a[maxN];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int n, k;
  cin >> n >> k;
  long long int x = n / 2;
  long long int val = k - x + 1;
  if (!k && n == 1) {
    cout << 1 << endl;
    return 0;
  }
  if (val <= 0 || n <= 1) {
    cout << -1 << endl;
    return 0;
  }
  a[0] = val;
  a[1] = val * 2;
  cout << a[0] << ' ' << a[1] << ' ';
  for (long long int i = 2; i < n; i++)
    a[i] = a[i - 1] + 1, cout << a[i] << ' ';
}
