eolymp
bolt
Try our new interface for solving problems
Problems

Straight Dividers 2

Straight Dividers 2

Natural number \textbf{m} is an even divisor of \textbf{n}, if the quotient and remainder of dividing \textbf{n} by \textbf{m} are equal. In every natural number has a finite number of smooth divisors. Their number is said to be characteristic of a number. Required to calculate the amount of characteristics of all the numbers from \textbf{a} to \textbf{b} inclusive. \InputFile The first line contains two integers \textbf{a} and \textbf{b} (\textbf{1} ≤ \textbf{a} ≤ \textbf{b} ≤ \textbf{10^9}). \OutputFile Bring one number - the sum of the characteristics of all the numbers from \textbf{a} to \textbf{b} inclusive.
Time limit 1 second
Memory limit 64 MiB
Input example #1
20 100
Output example #1
202
Author Pavel Kuzhecov