#include <bits/stdc++.h>
using namespace std;
string toBin(long long int a) { return bitset<64>(a).to_string(); }
void printArr(int* a, int n) {
  for (int i = 0; i < n; i++) printf("%d ", a[i]);
  printf("\n");
}
string intToString(long long int a) {
  ostringstream temp;
  temp << a;
  return temp.str();
}
long long int pow(long long int base, long long int exponent) {
  long long int result = 1;
  while (exponent > 0) {
    if (exponent % 2 == 1) result *= base;
    exponent = exponent >> 1;
    base *= base;
  }
  return result;
}
long long int powerWithMod(long long int base, long long int exponent,
                           long long int modulus) {
  long long int result = 1;
  base %= modulus;
  while (exponent > 0) {
    if (exponent % 2 == 1) result = (result * base) % modulus;
    exponent = exponent >> 1;
    base = (base * base) % modulus;
  }
  return result;
}
long long int dp[10000001];
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  for (int i = 1; i * i <= 10000000; i++) {
    for (int j = i * i; j <= 10000000; j += i * i) dp[j] = i * i;
  }
  int a, n;
  long long int ans = 0;
  cin >> a >> n;
  for (int x = a; x < a + n; x++) ans += (x / dp[x]);
  cout << ans << "\n";
  return 0;
}
