26 lines
525 B
Markdown
26 lines
525 B
Markdown
---
|
||
id: 5900f5361000cf542c510048
|
||
title: 问题457:多项式以素数的平方为模
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
---
|
||
|
||
# --description--
|
||
|
||
设f(n)= n2 - 3n - 1.设p为素数。令R(p)是最小的正整数n,使得如果存在这样的整数n则f(n)mod p2 = 0,否则R(p)= 0。
|
||
|
||
对于不超过L的所有素数,令SR(L)为ΣR(p)。
|
||
|
||
找到SR(107)。
|
||
|
||
# --hints--
|
||
|
||
`euler457()`应该返回2647787126797397000。
|
||
|
||
```js
|
||
assert.strictEqual(euler457(), 2647787126797397000);
|
||
```
|
||
|
||
# --solutions--
|
||
|