#include <bits/stdc++.h>
using namespace std;
long long m[10000005], x = 0, n, k, i, j, a;
int main() {
  cin >> a >> n;
  for (i = 1; i < a + n; i++) {
    m[i] = i;
  }
  for (i = 2; i < 3400; i++) {
    k = 0;
    for (j = i * i; j <= a + n; j = j + i * i) {
      k++;
      m[j] = k;
    }
  }
  for (i = a; i < a + n; i++) x = x + m[i];
  cout << x;
}
