#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N, M, l[100000] = {0}, r[100000] = {0}, i, j, k, ans = 0, d;
  cin >> N >> M;
  for (i = 0; i < N; i++) {
    cin >> l[i] >> r[i];
  }
  for (i = 1; i <= M; i++) {
    ans = 0;
    for (j = 0; j < N; j++) {
      d = i;
      while (d <= M) {
        if (d >= l[j] && d <= r[j]) {
          ans++;
          break;
        }
        d += i;
      }
    }
    cout << ans << endl;
  }
  return 0;
}
