#include <bits/stdc++.h>
using namespace std;
const int MN = 1000 * 1000 * 10 + 10;
int cnt[MN];
int main() {
  fill(&cnt[0], &cnt[0] + MN, 1);
  int a, n;
  cin >> a >> n;
  n = a + n;
  for (int i = 1; i * i < MN; i++) {
    int sq = i * i;
    for (int j = sq; j < MN; j += sq) cnt[j] = sq;
  }
  long long ans = 0;
  for (int i = a; i < n; i++) ans += i / cnt[i];
  cout << ans << endl;
  return 0;
}
