#include<iostream>

using namespace std;

int main(){
  int N,W;
  cin>>N>>W;
  int c=0;
  int a[100001]={};
  for(int i=1;i<=N;i++){
    if(W<2*i&&i<W){
      a[i+1]+=i*3<=i+1+W-1;
      for(int j=i;j<=2*N;j+=i){
	int x=j-W+1;
	if(x>i+1&&x<=N){
	  a[x]++;
	}
	if(i+1<j+1&&j+1<=N){
	  a[j+1]--;
	}
      }
    }else if(i<W){
      a[i+1]++;
    }
  }
  for(int i=1;;i++){
    cout<<c+W;
    if(i==N-W+1){
      cout<<endl;
      break;
    }else{
      cout<<' ';
      c+=a[i+1];
    }
  }
}

      