Oliver Eyton-Williams ee1e8abd87
feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

1.4 KiB
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f3db1000cf542c50feee 问题111运行的Primes 5 problem-111-primes-with-runs

--description--

考虑到包含重复数字的4位数素数很明显它们不能全部相同1111可被11整除2222可被22整除依此类推。但是有九个4位数的素数包含三个素数1117,1151,1171,1181,1511,1811,2111,4111,8111我们将说Mnd表示n-的最大重复数位数。数字素数其中d是重复数字Nnd表示这些素数的数量Snd表示这些素数的总和。所以M4,1= 3是4位数的素数的最大重复位数其中一个是重复的数字有N4,1= 9个这样的素数这些素数的总和是S 4,1= 22275.事实证明对于d = 0只能使M4,0= 2个重复数字但是存在N4,0= 13个这样的情况。同样地我们获得了4位素数的以下结果。

数字d M4dN4dS4d0 2 13 67061 1 3 9 22275 2 3 1 2221 3 3 12 46214 4 3 2 8888 5 3 1 5557 6 3 1 6661 7 3 9 57863 8 3 1 8887 9 3 7 48073

对于d = 0到9所有S4d的总和是273700.求所有S10d的总和。

--hints--

euler111()应返回612407567715。

assert.strictEqual(euler111(), 612407567715);

--seed--

--seed-contents--

function euler111() {

  return true;
}

euler111();

--solutions--

// solution required