#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
int main() {
  int n, m;
  cin >> n >> m;
  if (n == 1 && m == 0)
    printf("1");
  else if (n / 2 > m || n == 1)
    printf("-1\n");
  else if (n / 2 == m)
    for (int i = 1; i <= n; i++) printf("%d ", i);
  else {
    int k = (n - 2) / 2;
    int f = m - k;
    printf("%d %d", f, 2 * f);
    for (int i = 1, j = 1; j <= n - 2; i++, j++) {
      if (i == f || i == 2 * f) i++;
      printf(" %d", i);
    }
  }
  return 0;
}
