mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-30 15:04:00 -05:00
961 B
961 B
id, title, challengeType, forumTopicId, dashedName
| id | title | challengeType | forumTopicId | dashedName |
|---|---|---|---|---|
| 5900f49d1000cf542c50ffaf | Problem 304: Primonacci | 1 | 301958 | problem-304-primonacci |
--description--
Für jeden positiven Integer n liefert die Funktion \text{next_prime}(n) die kleinste Primzahl p, die p > n entspricht.
Die Folge a(n) ist definiert durch: a(1) = \text{next_prime}({10}^{14}) und a(n) = \text{next_prime}(a(n - 1)) für n > 1.
Die Fibonacci-Folge f(n) ist definiert durch: f(0) = 0, f(1) = 1 und f(n) = f(n - 1) + f(n - 2) für n > 1.
Die Folge b(n) ist definiert als f(a(n)).
Finde \sum b(n) for 1≤n≤100\\,000. Gib deine Antwort \bmod 1\\,234\\,567\\,891\\,011.
--hints--
primonacci() sollte 283988410192 zurückgeben.
assert.strictEqual(primonacci(), 283988410192);
--seed--
--seed-contents--
function primonacci() {
return true;
}
primonacci();
--solutions--
// solution required