#include <bits/stdc++.h>
using namespace std;
int n, k;
int main() {
  cin >> n >> k;
  if (n / 2 > k) return !printf("-1");
  if (n == 1) {
    if (k == 0)
      printf("1");
    else
      printf("-1");
    return 0;
  }
  int t = k - (n - 2) / 2;
  printf("%d %d", t, 2 * t);
  for (int i = 1; i <= n - 2; ++i) printf(" %d", i + 2 * t);
  return 0;
}
