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