#G2403C5C. [GESP202403 五级] 2. B-smooth 数
[GESP202403 五级] 2. B-smooth 数
题目描述
小杨同学想寻找一种名为 B-smooth 数的正整数。
如果一个正整数的最大质因子不超过 B,则该正整数为 B-smooth 数。小杨同学想知道,对于给定的 n 和 B,有多少个不超过 n 的 B-smooth 数。
输入格式
第一行包含两个正整数 n 和 B,含义如题面所示。
输出格式
输出一个非负整数,表示不超过 n 的 B-smooth 数的数量。
样例
10 3
7
提示
对全部的测试数据,保证 。
Statistics
Related
In following contests: