Let us begin with a positive integer and find the smallest positive integer which doesn't divide
. If we repeat the procedure with the resulting number, then again with the new result and so on, we will eventually obtain the number
. Let us define
as the length of the resulting sequence.
For example, for we obtain the sequence
which consists of
numbers, thus
.
Given two positive integers , calculate the sum of strengths of all integers between
and
(inclusive), that is,
Input Specification
The first and only line of input contains two positive integers, and
.
Output Specification
The first and only line of output should contain the requested sum of strengths.
Sample Input 1
3 6
Sample Output 1
11
Sample Input 2
100 200
Sample Output 2
262
Comments