freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-467-superinteger.md

32 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f5411000cf542c510052
title: 问题467超级整数
challengeType: 5
videoUrl: ''
---
# --description--
如果n的数字形成s的数字的子序列则整数s被称为另一整数n的超级整数。例如2718281828是18828的超级整数而314159不是151的超级整数。
令pn为第n个素数并且令cn为第n个复合数。例如p1= 2p10= 29c1= 4且c10= 18. {pii≥1} = {2,3,5,7 11,13,17,19,23,29...} {cii≥1} = {4,6,8,9,10,12,14,15,16,18.... ..}
设PD为{pi}的数字根的序列CD对{ci}的定义类似PD = {2,3,5,7,2,4,8,1,5 2...} CD = {4,6,8,9,1,3,5,6,7,9 ......}
令Pn为通过连接PD的前n个元素形成的整数Cn类似地定义为CD。 P10 = 2357248152 C10 = 4689135679
设fn是最小的正整数它是Pn和Cn的共同超整数。例如f10= 2357246891352679并且f100mod 1 000 000 007 = 771661825。
求f10 000mod 1 000 000 007。
# --hints--
`euler467()`应该返回775181359。
```js
assert.strictEqual(euler467(), 775181359);
```
# --solutions--