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