#include <bits/stdc++.h>
using namespace std;
const int MAXN = 100500;
int a[10000005];
int m, t;
long long N, M;
long long ans;
int main() {
  cin >> N >> M;
  t = 1;
  m = 1;
  while (t < N + M) {
    for (int j = t; j < N + M; j += t) a[j] = t;
    m++;
    t = m * m;
  }
  for (int i = N; i < N + M; i++) {
    ans += i / a[i];
  }
  cout << ans;
  return 0;
}
