#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 10000005;
long long D[MAX_N], Ans, A, N;
int main() {
  cin >> A >> N;
  for (int i = 1; i * i < MAX_N; i++)
    for (int j = i * i; j < MAX_N; j += (i * i)) D[j] = i * i;
  for (int i = A; i < A + N; i++) Ans += (i / D[i]);
  cout << Ans << endl;
}
