#include <bits/stdc++.h>
using namespace std;
const int INF = 2147483647;
const long long LLINF = 9223372036854775807LL;
const int maxn = 10000010;
int sq[maxn] = {};
int main() {
  int a, n;
  scanf("%d%d", &a, &n);
  int R = a + n - 1;
  for (int i = 1; i * i <= R; ++i) {
    int i2 = i * i;
    for (int j = i2; j <= R; j += i2) sq[j] = i2;
  }
  long long ans = 0;
  for (int i = a; i <= R; ++i) ans += i / sq[i];
  cout << ans << endl;
  return 0;
}
