标题:给点思路
取消只看楼主
ark1994218
Rank: 1
等 级:新手上路
帖 子:15
专家分:0
注 册:2013-5-12
结帖率:75%
 问题点数:0 回复次数:0 
给点思路
Favorite number
HanBo Favorite number is 1, So he will often use some ways to put some numbers to 1,and to this endless pride. He would only two ways will be:
(1) Put a number m divided by a prime number p . of course, this number must be divisible, i.e m = m / p
(2) The number m of one minus 1, i.e m = m-1 There are a whim, he wanted [a, b] interval all the numbers one by one into a 1, which is a huge boring works, so he wanted to know how much he was operating at least in order to achieve the purpose.
Input contains multiple sets of data (1000 data), the end of the input is indicated by 0 0. Each set of data begins with two integers: a, b (0 <a <= b <= 100000), meaning as the meaning of problems described.
Output Each data output line, at least operand numbers.
Sample Input 2 3 3 5 11 12 0 0
Sample Output 2 4 3
搜索更多相关主题的帖子: achieve numbers course wanted least 
2013-06-15 23:28



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-415256-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.046712 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved