#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:16777216")
using namespace std;
const int maxn = 10000005;
const int mod = 1000000007;
void task() {
  std::vector<long long> sq(maxn, 0);
  for (long long i = 1; i <= 4000; i++) {
    for (long long j = i * i; j <= maxn; j += (i * i)) {
      sq[j] = i * i;
    }
  }
  long long a, n;
  cin >> a >> n;
  long long tot = 0;
  for (int i = a; i < a + n; i++) {
    tot += (i / sq[i]);
  }
  cout << tot << "\n";
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int T = 1;
  for (int __ = 1; __ <= T; __++) {
    task();
  }
  return 0;
}
