#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, M;
  cin >> N >> M;
  vector<int> A(M + 2, 0);
  for (int i = 0; i < N; ++i) {
    int l, r;
    cin >> l >> r;
    ++A[0];
    --A[r - l + 1];
    ++A[l];
    --A[r + 1];
    if (r - l + 1 >= l) continue;
    for (int j = r - l + 1; j <= r; ++j) {
      if (r / j == (l - 1) / j) continue;
      ++A[j];
      --A[j + 1];
    }
  }
  for (int i = 1; i < M + 2; ++i) {
    A[i] += A[i - 1];
  }
  for (int i = 1; i <= M; ++i) cout << A[i] << endl;
  return 0;
}
