#include <bits/stdc++.h>
using namespace std;
const int N = 10000005;
const int M = 1e9;
int ans[N];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  for (int i = 1; i < N; i++) ans[i] = 1;
  int sq = int(sqrt(N)) + 1;
  for (int i = 2; i < sq; i++) {
    int inc = i * i;
    for (int j = inc; j < N; j += inc) ans[j] = inc;
  }
  int a, n;
  cin >> a >> n;
  long long cnt = 0;
  for (int i = a; i < (a + n); i++) cnt += (i * 1LL) / ans[i];
  cout << cnt << "\n";
  return 0;
}
