#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, m;
  cin >> n >> m;
  vector<long long int> l(n);
  vector<long long int> r(n);
  for (long long int i = 0; i < (n); i++) {
    cin >> l[i] >> r[i];
  }
  vector<set<long long int>> list(m + 1, set<long long int>());
  for (long long int i = 0; i < (n); i++) {
    for (long long int j = l[i]; j <= r[i]; j++) {
      list[j].insert(i);
    }
  }
  for (long long int d = 1; d <= m; d++) {
    set<long long int> st;
    for (long long int i = 0; i <= m; i += d) {
      for (auto e : list[i]) st.insert(e);
    }
    cout << st.size() << endl;
  }
  return 0;
}
