2018-10-10 18:03:03 -04:00
---
id: 5900f4d11000cf542c50ffe4
challengeType: 5
title: 'Problem 357: Prime generating integers'
2019-08-28 16:26:13 +03:00
forumTopicId: 302017
2018-10-10 18:03:03 -04:00
localeTitle: 'Задача 357: Начальные целые числа'
---
## Description
2019-08-28 16:26:13 +03:00
< section id = 'description' >
Рассмотрим делители 30: 1,2,3,5,6,10,15,30. Видно, что для каждого дивизора d из 30 d + 30 / d является простым. < p > Найдите сумму всех натуральных чисел n, не превышающих 100 000 000, так что для каждого дивизора d из n, d + n / d является простым. < / p >
< / section >
2018-10-10 18:03:03 -04:00
## Instructions
2019-08-28 16:26:13 +03:00
< section id = 'instructions' >
2018-10-10 18:03:03 -04:00
< / section >
## Tests
< section id = 'tests' >
```yml
tests:
2019-08-28 16:26:13 +03:00
- text: < code > euler357()</ code > should return 1739023853137.
testString: assert.strictEqual(euler357(), 1739023853137);
2018-10-10 18:03:03 -04:00
```
< / section >
## Challenge Seed
< section id = 'challengeSeed' >
< div id = 'js-seed' >
```js
function euler357() {
// Good luck!
return true;
}
euler357();
```
< / div >
< / section >
## Solution
< section id = 'solution' >
```js
// solution required
```
2019-08-28 16:26:13 +03:00
2018-10-10 18:03:03 -04:00
< / section >