59 lines
1.9 KiB
Markdown
59 lines
1.9 KiB
Markdown
---
|
||
id: 5900f39c1000cf542c50feae
|
||
challengeType: 5
|
||
title: 'Problem 47: Distinct primes factors'
|
||
videoUrl: ''
|
||
localeTitle: 'Проблема 47: Определенные коэффициенты простых чисел'
|
||
---
|
||
|
||
## Description
|
||
<section id="description"> Первые два последовательных номера имеют два разных основных фактора: <div style="padding-left: 4em;"> 14 = 2 × 7 </div><div style="padding-left: 4em;"> 15 = 3 × 5 </div> Первые три последовательных номера имеют три различных основных фактора: <div style="padding-left: 4em;"> 644 = 2 × × 7 × 23 </div><div style="padding-left: 4em;"> 645 = 3 × 5 × 43 </div><div style="padding-left: 4em;"> 646 = 2 × 17 × 19 </div> Найдите первые четыре последовательных целых числа, каждый из которых имеет четыре различных основных фактора. Каков первый из этих чисел? </section>
|
||
|
||
## Instructions
|
||
undefined
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: ''
|
||
testString: 'assert.strictEqual(distinctPrimeFactors(2, 2), 14, "<code>distinctPrimeFactors(2, 2)</code> should return 14.");'
|
||
- text: ''
|
||
testString: 'assert.strictEqual(distinctPrimeFactors(3, 3), 644, "<code>distinctPrimeFactors(3, 3)</code> should return 644.");'
|
||
- text: ''
|
||
testString: 'assert.strictEqual(distinctPrimeFactors(4, 4), 134043, "<code>distinctPrimeFactors(4, 4)</code> should return 134043.");'
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function distinctPrimeFactors(targetNumPrimes, targetConsecutive) {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
distinctPrimeFactors(4, 4);
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
</section>
|