2018-09-30 22:01:58 +00:00
---
id: 5900f4351000cf542c50ff47
2020-11-27 18:02:05 +00:00
title: >-
Problem 200: Find the 200th prime-proof sqube containing the contiguous
sub-string "200"
2018-09-30 22:01:58 +00:00
challengeType: 5
2019-08-05 16:17:33 +00:00
forumTopicId: 301840
2021-01-13 02:31:00 +00:00
dashedName: >-
problem-200-find-the-200th-prime-proof-sqube-containing-the-contiguous-sub-string-200
2018-09-30 22:01:58 +00:00
---
2020-11-27 18:02:05 +00:00
# --description--
2021-07-15 13:52:14 +00:00
We shall define a sqube to be a number of the form, ${p^2}{q^3}$, where $p$ and $q$ are distinct primes.
2020-11-27 18:02:05 +00:00
2021-07-15 13:52:14 +00:00
For example, $200 = {5^2}{2^3}$ or $120072949 = {{23}^2}{{61}^3}$.
2018-09-30 22:01:58 +00:00
The first five squbes are 72, 108, 200, 392, and 500.
2021-07-15 13:52:14 +00:00
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.
2018-09-30 22:01:58 +00:00
2021-07-15 13:52:14 +00:00
Find the 200th prime-proof sqube containing the contiguous sub-string `200` .
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
# --hints--
2018-09-30 22:01:58 +00:00
2021-07-15 13:52:14 +00:00
`primeProofSqubeWithSubString()` should return `229161792008` .
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
```js
2021-07-15 13:52:14 +00:00
assert.strictEqual(primeProofSqubeWithSubString(), 229161792008);
2018-09-30 22:01:58 +00:00
```
2020-11-27 18:02:05 +00:00
# --seed--
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
## --seed-contents--
2018-09-30 22:01:58 +00:00
```js
2021-07-15 13:52:14 +00:00
function primeProofSqubeWithSubString() {
2020-09-15 16:57:40 +00:00
2018-09-30 22:01:58 +00:00
return true;
}
2021-07-15 13:52:14 +00:00
primeProofSqubeWithSubString();
2018-09-30 22:01:58 +00:00
```
2020-11-27 18:02:05 +00:00
# --solutions--
2018-09-30 22:01:58 +00:00
```js
// solution required
```