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