Problem : 编写函数都整数num中包含因子K的个数

Problem : 编写函数都整数num中包含因子K的个数

Time Limit: 100000 Sec  Memory Limit: 128 MB
Submit: 763  Solved: 324
[Submit] [Status] [Web Board] [Creator:]

Description

编写函数factors(num, k),函数功能是:求整数num中包含因子k的个数,如果没有该因子则返回0,例如:32=2×2×2×2×2,则factors(32,2)=5。要求输入输出均在主函数中完成。 

Input

4 2

Output

2

Sample Input

8 3

Sample Output

0

[Submit][Status]