IntermediateRating 1300
Count Numbers With k Divisors
Count the numbers from 1 to n that have exactly k divisors.
Input
Two integers n (≤ 10⁵) and k.
Output
One integer.
Sample 1
Input
10 2
Output
4
Sample 2
Input
100 3
Output
4
Output appears hereTwo integers n (≤ 10⁵) and k.
One integer.
10 2
4
100 3
4
Output appears here