#include <bits/stdc++.h>
using namespace std;
int n, m, l, r, a[100005], b[100005];
int main() {
  scanf("%d%d", &n, &m);
  for (int i = 0; i < n; i++) {
    scanf("%d%d", &l, &r);
    int rr = m + 1;
    for (int j = 1; j * j <= r && j < rr; j++) {
      a[j]++;
      a[j + 1]--;
      a[min(r / j + 1, rr)]--;
      a[rr = max(j + 1, l / j)]++;
    }
  }
  for (int i = 1; i <= m; i++) printf("%d\n", a[i] += a[i - 1]);
}
