#include <bits/stdc++.h>
using namespace std;
const long long N = 1e7 + 100;
long long m[N];
long long a, n, ans;
int32_t main() {
  cin >> a >> n;
  for (long long i = 1; i * i < a + n; i++)
    for (long long j = i * i; j < a + n; j += i * i) m[j] = i * i;
  for (long long i = a; i < a + n; i++) ans += (i / m[i]);
  return cout << ans, 0;
}
