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

1.3 KiB

id localeTitle challengeType title
5 5900f4351000cf542c50ff47 5 Problem 200: Find the 200th prime-proof sqube containing the contiguous sub-string "200"

Description

Definiremos un sqube como un número de la forma, p2q3, donde p y q son primos distintos. Por ejemplo, 200 = 5223 o 120072949 = 232613.

Los primeros cinco squbes son 72, 108, 200, 392 y 500.

Interesantemente, 200 también es el primer número para el cual no puede cambiar ningún dígito. un primo Llamaremos a esos números, prueba principal. El siguiente sqube de prueba principal que contiene la subcadena contigua "200" es 1992008.

Encuentre el sqube de prueba primordial número 200 que contiene la subcadena contigua "200".

Instructions

Tests

tests:
  - text: <code>euler200()</code> debe devolver 229161792008.
    testString: 'assert.strictEqual(euler200(), 229161792008, "<code>euler200()</code> should return 229161792008.");'

Challenge Seed

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

euler200();

Solution

// solution required