#include <bits/stdc++.h>
using namespace std;
int n, m;
int a[20000002];
int main() {
  cin >> n >> m;
  for (int i = 1; i <= 4675; i++) {
    int j = i * i, k = i * i;
    while (j <= n + m) {
      a[j] = k;
      j += k;
    }
  }
  long long ans = 0;
  for (int i = (n); (i) <= (n + m - 1); (i)++)
    ans += (long long)i / (long long)a[i];
  cout << ans << endl;
  return 0;
}
