#include <bits/stdc++.h>
using namespace std;
const int N = 1e7 + 10;
int a[N];
int main() {
  for (int i = 0; i < N; ++i) {
    a[i] = 1;
  }
  for (int i = 1; i * i < N; ++i) {
    int k = i * i;
    for (int j = k; j < N; j += k) {
      a[j] = k;
    }
  }
  int a0, n;
  cin >> a0 >> n;
  long long res = 0;
  for (int i = 0; i < n; ++i) {
    res += (a0 + i) / a[a0 + i];
  }
  cout << res << endl;
  return 0;
}
