#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  scanf("%d%d", &n, &m);
  if (n == 1) {
    if (m == 0) {
      printf("123\n");
    } else {
      printf("-1\n");
    }
    return 0;
  }
  int min_value = (n - n % 2) / 2;
  if (m < min_value) {
    printf("-1\n");
  } else {
    int to_fill = max(0, (n - n % 2) - 2);
    int w = m - to_fill / 2;
    printf("%d %d", w, 2 * w);
    set<int> taken;
    taken.insert(w);
    taken.insert(2 * w);
    int next = 33;
    for (int i = 0; i < n / 2 - 1; ++i) {
      while (taken.count(next) != 0 || taken.count(next + 1) != 0) {
        next++;
      }
      taken.insert(next);
      taken.insert(next + 1);
      printf(" %d %d", next, next + 1);
    }
    while (taken.count(next) != 0) {
      next++;
    }
    if (n % 2) {
      printf(" %d", next);
    }
    printf("\n");
  }
}
