素数
weixin_44040169
这个作者很懒,什么都没留下…
展开
-
Largest prime factor
Problem Description Everybody knows any number can be combined by the prime number. Now, your task is telling me what position of the largest prime factor. The position of prime 2 is 1, prime 3 is 2, ...原创 2019-05-17 20:13:00 · 162 阅读 · 0 评论 -
G - Non-Prime Factors
In many programming competitions, we are asked to find (or count the number of) Prime Factors of an integer i. This is boring. This time, let’s count the number of Non-Prime Factors of an integer i, d...原创 2019-05-17 22:02:34 · 230 阅读 · 0 评论 -
素数回文
素数回文 xiaoou33对既是素数又是回文的数特别感兴趣。比如说151既是素数又是个回文。现在xiaoou333想要你帮助他找出某个范围内的素数回文数,请你写个程序找出 a 跟b 之间满足条件的数。(5 <= a < b <= 100,000,000); Input 这里有许多组数据,每组包括两组数据a跟b。 Output 对每一组数据,按从小到大输出a,b之间所有满足条件的素...原创 2019-06-24 21:31:26 · 170 阅读 · 0 评论