| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 327 人关注过本帖
标题:[求助][讨论]如何用c语言编回文素数的 我还没学过
只看楼主 加入收藏
雾雨非流云
Rank: 1
等 级:新手上路
帖 子:25
专家分:0
注 册:2007-11-3
收藏
 问题点数:0 回复次数:0 
[求助][讨论]如何用c语言编回文素数的 我还没学过

The number 151 is a prime palindrome because it is both a prime number and a palindrome (it is the same number when read forward as backward). Write a program that finds all prime palindromes in the range of 3 and 1,000,000,000.

Output

The list of palindromic primes in numerical order, one per line. Then print the run time (seconds) at the last line.

Sample Output

3
5
7
11
101
131
151
181
191
313
353
373
383
...
...
30 seconds 
搜索更多相关主题的帖子: backward because forward 
2007-11-05 18:30
快速回复:[求助][讨论]如何用c语言编回文素数的 我还没学过
数据加载中...
 
   



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

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