#include <bits/stdc++.h>
using namespace std;
const int maxn = 111111;
const double inf = 0.000001;
const int INF = ~0U >> 1;
const int mod = 1000000007;
int n, a[maxn], m;
int equal(double x, double y) {
  if (x - y >= -inf && x - y <= inf)
    return 0;
  else if (x - y > inf)
    return 1;
  return -1;
}
int main() {
  scanf("%d", &n), scanf("%d", &m);
  if (m < n / 2 || (n == 1 && m))
    printf("%d\n", -1);
  else if (n == 1 && m == 0)
    printf("%d\n", 1);
  else {
    int ans = m - n / 2 + 1;
    printf("%d %d", ans, ans * 2);
    ans *= 2;
    for (int i = 2; i < n; i++) printf(" %d", (++ans));
  }
  printf("\n");
  return 0;
}
