ProjectEuler 457 A polynomial modulo the squa - 拼圖

Table of Contents

457. A polynomial modulo the square of a prime

http://projecteuler.net/problem=457

令f(n) = n^2 - 3n - 1。

令p為質數。

令R(p)為符合f(n) mod p^2 = 0的最小正整數n、或是0如果n不存在。

令SR(L)為ΣR(p)對所有不超過L的質數p的和。

請求出SR(10^7)。

--

All Comments