#BS0000059. N + NOD(N)
N + NOD(N)
N + NOD(N)
Source: UVa
Version: Phuoc Hung OJ Extended
Problem Statement
Consider the integer sequence defined by
and, for ,
where is the number of positive divisors of .
Given integers , count the sequence values in the inclusive range .
Input
The only line contains integers .
Output
Print the number of sequence values satisfying .
Subtasks
- Subtask 1 — 20%: .
- Subtask 2 — 30%: .
- Subtask 3 — 50%: .
Example
Input
1 18
Output
7
Explanation
The sequence values in are , so the answer is .