#include <bits/stdc++.h>
using namespace std;
const int N = 10000000;
long long sum[N];
long long res;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n, k;
  cin >> n >> k;
  for (long long i = 1; i * i <= N; i++) {
    long long sq = i * i;
    for (long long j = sq; j <= N; j += sq) sum[j] = j / sq;
  }
  for (long long i = 0; i < k; i++) {
    res += sum[n + i];
  }
  cout << res << endl;
  return 0;
}
