#include <bits/stdc++.h>
const int MOD = 1e9 + 7;
using namespace std;
const int N = 1e7 + 100;
int v[N];
void solve() {
  int a, n;
  cin >> a >> n;
  long long ans = 0;
  for (int i = 0; i < a + n; ++i) {
    v[i] = i;
  }
  int k, it = 0;
  for (int i = 2; i * i <= a + n; ++i) {
    k = 0;
    for (int j = i * i; j <= a + n; j += i * i) {
      v[j] = ++k;
    }
  }
  for (int i = a; i < a + n; ++i) ans += v[i];
  cout << ans;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  solve();
}
