#include <bits/stdc++.h>
using namespace std;
long long a, n;
long long f[10000001];
int main() {
  cin >> a >> n;
  for (long long i = 1; i * i <= 10000000; i++) {
    long long k = i * i;
    long long d = 1;
    while (k <= 10000000) {
      f[k] = k / (i * i);
      d++;
      k = i * i * d;
    }
  }
  long long res = 0;
  for (int i = a; i <= a + n - 1; i++) res += f[i];
  cout << res << endl;
  return 0;
}
