24小时热门版块排行榜    

查看: 304  |  回复: 1

tieer

木虫 (正式写手)

[交流] 欧拉工程 第51题 已有1人参与

好久没看着接着发的了,我发一个吧。
翻译的比较烂,意思应该没错,呵呵,大家凑合看吧。这题的算法我还没想出来呢,期待高手吧。

Problem 51
By replacing the 1st digit of *3, it turns out that six of the nine possible values: 13, 23, 43, 53, 73, and 83, are all prime.

By replacing the 3rd and 4th digits of 56**3 with the same digit, this 5-digit number is the first example having seven primes among the ten generated numbers, yielding the family: 56003, 56113, 56333, 56443, 56663, 56773, and 56993. Consequently 56003, being the first member of this family, is the smallest prime with this property.

Find the smallest prime which, by replacing part of the number (not necessarily adjacent digits) with the same digit, is part of an eight prime value family.

欧拉工程51:

通过用数字取代*3格式数字中的第一个数,9个数中有6个是素数:13, 23, 43, 53, 73, 83。

通过用同一个数字取代56**3中的第三个和第四个数字,这是第一个在取代得到的十个数字中有7个数字是素数的五位数: 56003, 56113, 56333, 56443, 56663, 56773, 56993。因此56003是其中最小的符合该要求的素数。

寻找最小的用相同数字取代其中的部分后可以得到8个素数的素数,被取代数字不用是相邻的数字。

[ Last edited by tieer on 2012-9-10 at 10:36 ]
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

思考,让这个世界更有趣。
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wangww2011

木虫 (著名写手)


小木虫: 金币+0.5, 给个红包,谢谢回帖
支持楼主放题,因为过了50题才开始有意思,前面的太简单了,不过后面的很多题太偏数学了。

刚跑到euler上看了下,这道题做了?于是在电脑上找代码,发现用的方法很笨,用python居然洋洋洒洒的写了50余行(汗一个),所以就不好意思贴出来了。
2楼2012-09-11 01:51:54
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 tieer 的主题更新
普通表情 高级回复 (可上传附件)
信息提示
请填处理意见