#include <bits/stdc++.h>
using namespace std;
const int inf = (int)(1e9);
const int mod = inf + 7;
const double pi = acos(-1.0);
const double eps = 1e-9;
int a, n;
long long ans = 0;
vector<int> v(10010000, inf);
int main() {
  cin >> a >> n;
  for (int i = 1; i < 10010000; i++) {
    for (int j = 1; j * 1ll * j * i < 10010000; j++)
      v[i * j * j] = min(v[i * j * j], i);
  }
  for (int i = a; i < a + n; i++) {
    ans += 1ll * v[i];
  }
  cout << ans;
  return 0;
}
