#include <bits/stdc++.h>
using namespace std;
int see[10000001];
int ans[10000001];
void era() {
  see[0] = see[1] = 1;
  for (int i = 2; i < 10000001; ++i)
    if (see[i] == 0)
      for (int j = 2 * i; j < 10000001; j += i) see[j] = i;
}
int main() {
  era();
  ans[0] = ans[1] = 1;
  for (int i = 2; i < 10000001; ++i) {
    if (see[i] == 0)
      ans[i] = 1;
    else {
      int p = see[i], b = i / p, k2 = ans[b];
      if ((b / k2) % p == 0)
        ans[i] = k2 * p * p;
      else
        ans[i] = k2;
    }
  }
  int a, n;
  cin >> a >> n;
  long long sum = 0;
  for (int i = 0; i < n; ++i, ++a) sum += a / ans[a];
  cout << sum << endl;
  return 0;
}
