Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-200-find-the-200th-prime-proof-sqube-containing-the-contiguous-sub-string-200.md
gikf 5a52c229f5 fix(curriculum): clean-up Project Euler 181-200 (#42819)
* fix: clean-up Project Euler 181-200

* fix: corrections from review

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>

* fix: missing delimiter

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2021-07-15 15:52:14 +02:00

50 lines
1.2 KiB
Markdown

---
id: 5900f4351000cf542c50ff47
title: >-
Problem 200: Find the 200th prime-proof sqube containing the contiguous
sub-string "200"
challengeType: 5
forumTopicId: 301840
dashedName: >-
problem-200-find-the-200th-prime-proof-sqube-containing-the-contiguous-sub-string-200
---
# --description--
We shall define a sqube to be a number of the form, ${p^2}{q^3}$, where $p$ and $q$ are distinct primes.
For example, $200 = {5^2}{2^3}$ or $120072949 = {{23}^2}{{61}^3}$.
The first five squbes are 72, 108, 200, 392, and 500.
Interestingly, 200 is also the first number for which you cannot change any single digit to make a prime; we shall call such numbers, prime-proof. The next prime-proof sqube which contains the contiguous sub-string `200` is 1992008.
Find the 200th prime-proof sqube containing the contiguous sub-string `200`.
# --hints--
`primeProofSqubeWithSubString()` should return `229161792008`.
```js
assert.strictEqual(primeProofSqubeWithSubString(), 229161792008);
```
# --seed--
## --seed-contents--
```js
function primeProofSqubeWithSubString() {
return true;
}
primeProofSqubeWithSubString();
```
# --solutions--
```js
// solution required
```