#include <bits/stdc++.h>
using namespace std;
const double PI = 3.14159265358979323846;
const double EPS = 1e-9;
const long long INF = 10e17;
double equal(double a, double b) { return fabs(a - b) < DBL_EPSILON; }
std::istream &operator>>(std::istream &in, set<int> &o) {
  int a;
  in >> a;
  o.insert(a);
  return in;
}
std::istream &operator>>(std::istream &in, queue<int> &o) {
  long long a;
  in >> a;
  o.push(a);
  return in;
}
bool contain(set<int> &s, int a) { return s.find(a) != s.end(); }
int main() {
  int n, m;
  cin >> n >> m;
  vector<pair<long long, long long> > v(n);
  for (pair<long long, long long> &p : v) cin >> p.first >> p.second;
  for (int i = 0; i < (m + 1); ++i) {
    if (i == 0) continue;
    set<int> s;
    for (int j = 0; j <= m; j += i) {
      for (int k = 0; k < (n); ++k) {
        pair<long long, long long> p = v[k];
        if (p.first <= j && j <= p.second) s.insert(k);
      }
    }
    cout << s.size() << endl;
  }
}
