freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-200-find-the-200th-...

1.3 KiB
Raw Blame History

id challengeType title videoUrl localeTitle
5900f4351000cf542c50ff47 5 Problem 200: Find the 200th prime-proof sqube containing the contiguous sub-string "200" 问题200找到包含连续子串“200”的第200个防爆大概

Description

我们将一个sqube定义为一个形式的数字p2q3其中p和q是不同的素数。例如200 = 5223或120072949 = 232613。

前五个角是72,108,200,392和500。

有趣的是200也是第一个不能改变任何单个数字来构成素数的数字;我们称这些数字为主要证据。包含连续子串“200”的下一个主要证明群是1992008。

找到包含连续子串“200”的第200个防质量的sqube。

Instructions

Tests

tests:
  - text: <code>euler200()</code>应该返回229161792008。
    testString: 'assert.strictEqual(euler200(), 229161792008, "<code>euler200()</code> should return 229161792008.");'

Challenge Seed

function euler200() {
  // Good luck!
  return true;
}

euler200();

Solution

// solution required