#include <bits/stdc++.h>
#define reg register
using namespace std;

const int N=300010;
int n,m,ql,qr,ans[N];

int read()
{
	int d=0; char ch=getchar();
	while (!isidigt(ch)) ch=getchar();
	while (isdigit(ch)) d=(d<<3)+(d<<1)+ch-48,ch=getchar();
	return d;
}

int main()
{
	m=read(); n=read();
	while (m--)
	{
		ql=read(); qr=read();
		for (reg int i=1;i<=qr;)
		{
			int d=qr/i,j=qr/d,k=(ql-1)/d;
			ans[max(k+1,i)]++; ans[j+1]--;
			i=j+1;
		}
	}
	for (reg int i=1;i<=n;i++)
	{
		ans[i]+=ans[i-1];
		printf("%d\n",ans[i]);
	}
	return 0;
}