#include <bits/stdc++.h>
using namespace std;
int a[10000000 + 10];
int main() {
  for (int i = 1; i * i <= 10000000; i++) {
    int sq = i * i;
    for (int j = sq; j <= 10000000; j += sq) {
      a[j] = sq;
    }
  }
  long long y, n;
  cin >> y >> n;
  long long sum = 0;
  for (long long i = 0; i < n; i++) {
    sum += (y + i) / a[y + i];
  }
  cout << sum;
}
