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