#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long N, M;
  long long A, B;
  long long road[100005] = {0};
  long long sum[100005] = {0};
  cin >> N >> M;
  for (long long i = 0; i < N; i++) {
    cin >> A >> B;
    B++;
    road[A]++, road[B]--;
    sum[A]++;
  }
  for (long long i = 1; i <= M + 1; i++) {
    road[i] = road[i - 1] + road[i];
    sum[i] = sum[i - 1] + sum[i];
  }
  for (long long i = 1; i <= M; i++) {
    long long save = 0, ans = 0;
    for (long long j = 0; j <= M + 1; j += i) {
      ans += min((sum[j] - save), road[j]);
      save = sum[j];
    }
    cout << ans << endl;
  }
  return 0;
}
