freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-49-prime-permutatio...

663 B
Raw Blame History

id title challengeType videoUrl
5900f39d1000cf542c50feb0 问题49主要排列 5

--description--

算术序列1487,4817,8147其中每个项增加3330在两个方面是不寻常的i三个项中的每一个都是素数并且ii每个4位数字是彼此的排列。没有由三个1位2位或3位数的素数组成的算术序列表现出这种性质但还有另外一个4位数的增加序列。你通过连接这个序列中的三个术语来形成12位数字

--hints--

primePermutations()应该返回296962999629。

assert.strictEqual(primePermutations(), 296962999629);

--solutions--