Files
freeCodeCamp/curriculum/challenges/spanish/08-coding-interview-prep/project-euler/problem-127-abc-hits.spanish.md
2018-10-11 02:15:05 +05:30

56 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f3ec1000cf542c50fefe
challengeType: 5
title: 'Problem 127: abc-hits'
videoUrl: ''
localeTitle: 'Problema 127: abc-hits'
---
## Description
<section id="description"> El radical de n, rad (n), es el producto de distintos factores primos de n. Por ejemplo, 504 = 23 × 32 × 7, entonces rad (504) = 2 × 3 × 7 = 42. Definiremos que el triplete de enteros positivos (a, b, c) sea un acierto si: GCD ( a, b) = GCD (a, c) = GCD (b, c) = 1 a &lt;ba + b = c rad (abc) &lt;c Por ejemplo, (5, 27, 32) es un éxito abc, porque : GCD (5, 27) = GCD (5, 32) = GCD (27, 32) = 1 5 &lt;27 5 + 27 = 32 rad (4320) = 30 &lt;32 Resulta que los abc-hits son bastante raros y solo hay treinta y un abc-hits para c &lt;1000, con ∑c = 12523. Encuentra ∑c para c &lt;120000. </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler127()</code> debe devolver 18407904.
testString: 'assert.strictEqual(euler127(), 18407904, "<code>euler127()</code> should return 18407904.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler127() {
// Good luck!
return true;
}
euler127();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>