LearnPy Hub
← Arena
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
solution.py
Output appears here
Count Numbers With k Divisors · Python Arena problem · LearnPy Hub