Bonus for p416
Public  08/04/17  8xp  Math  88.9% 
Let $r_3(n) = \# \{ (x, y, z) \in \mathbb{Z}^3 \mid x^2 + y^2 + z^2 = n \}$.
For example, $r_3(0) = 1$, $r_3(1) = 6$ and $r_3(100) = 30$.
Let $S(n, m) = \sum \limits _{k=0}^{m1} r_3(n + k)$.
It can be verified that $S(1, 100) = 4168$ and $S(10^8, 100) = 6410310$.
Find $S(10^{17}, 100)$.
[My timing: 2.6 seconds (PyPy)]
Note: It would be hard without parigp and some papers.
New Members
 WildChild 4d:9h
 andresporras 5d:14h
 maggch 1w:1d
 RoniZeng 1w:1d
 stiwar 1w:3d
Fresh Problems

Generalized ellipse 1 3d:18h
solved by 6 
Machin Like Formulae 1w:6d
solved by 2 
Kolakoski Sequence 2w:1d
solved by 1 
A big sum 2 2w:3d
solved by 6 
Broken DNA 2w:6d
solved by 8