#include <bits/stdc++.h>
using namespace std;
long long d[10000001], a, n, ans;
void imnubas() {
  for (int i = 1; i * i <= 10000000; i++) {
    int k = i * i;
    for (int j = k; j <= 10000000; j += k) d[j] = k;
  }
}
int main() {
  cin >> a >> n;
  imnubas();
  for (int i = a; i < a + n; i++) ans += i / d[i];
  cout << ans;
}
