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