#include <bits/stdc++.h>
using namespace std;
const int N = 10000000;
int a[N + 1];
void init() {
  for (int i = 2; i * i <= N; ++i) {
    for (int j = 1; j * i * i <= N; ++j) a[j * i * i] = i * i;
  }
}
int main() {
  init();
  int n, k;
  cin >> n >> k;
  long long ans = 0;
  for (int i = n; i < n + k; ++i) {
    if (a[i] == 0)
      ans += (long long)(i);
    else
      ans += (long long)(i / a[i]);
  }
  cout << ans << endl;
  return 0;
}
