#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long a, n;
  cin >> a >> n;
  long long MAX = a + n + 1;
  long long mp[MAX];
  memset(mp, 0, sizeof mp);
  for (long long i = 1; i * i < MAX; i++) {
    long long val = i * i, j = 1;
    while (val * j < MAX) {
      if (mp[val * j] > 0) {
        mp[val * j] = min(mp[val * j], j);
      } else {
        mp[val * j] = j;
      }
      j++;
    }
  }
  long long ans = 0;
  for (int i = (int)(a); i <= (int)(a + n - 1); i++) {
    ans += mp[i];
  }
  cout << ans << "\n";
}
