2018-10-10 18:03:03 -04:00
---
id: 5900f3fe1000cf542c50ff11
2021-02-06 04:42:36 +00:00
title: 'Problem 146: Investigating a Prime Pattern'
2018-10-10 18:03:03 -04:00
challengeType: 5
2021-02-06 04:42:36 +00:00
forumTopicId: 301775
2021-01-13 03:31:00 +01:00
dashedName: problem-146-investigating-a-prime-pattern
2018-10-10 18:03:03 -04:00
---
2020-12-16 00:37:30 -07:00
# --description--
2021-02-06 04:42:36 +00:00
The smallest positive integer n for which the numbers n2+1, n2+3, n2+7, n2+9, n2+13, and n2+27 are consecutive primes is 10. The sum of all such integers n below one-million is 1242490.
2020-02-18 01:40:55 +09:00
2021-02-06 04:42:36 +00:00
What is the sum of all such integers n below 150 million?
2018-10-10 18:03:03 -04:00
2020-12-16 00:37:30 -07:00
# --hints--
2018-10-10 18:03:03 -04:00
2021-02-06 04:42:36 +00:00
`euler146()` should return 676333270.
2018-10-10 18:03:03 -04:00
```js
2020-12-16 00:37:30 -07:00
assert.strictEqual(euler146(), 676333270);
2018-10-10 18:03:03 -04:00
```
2021-01-13 03:31:00 +01:00
# --seed--
## --seed-contents--
```js
function euler146() {
return true;
}
euler146();
```
2020-12-16 00:37:30 -07:00
# --solutions--
2020-08-13 17:24:35 +02:00
2021-01-13 03:31:00 +01:00
```js
// solution required
```