login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A248373 Partial sums of primes of form n^2 + (n+1)^2 + (n+2)^2 (A027864). 1
5, 34, 183, 692, 1369, 3246, 6923, 15352, 25101, 37010, 50479, 68268, 90977, 118054, 146283, 191672, 238549, 291618, 361847, 433924, 515601, 616070, 718747, 832824, 961373, 1102642, 1257231, 1437308, 1629337, 1824414, 2031923, 2255512, 2485701, 2746778, 3059767 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MATHEMATICA
f[x_]:=x^2+(x+1)^2+(x+2)^2;
n=50; result={}; counter=0; number=0;
While[counter<n, value=f[number];
If[PrimeQ[value]==True, AppendTo[result, value]; counter=counter+1];
number=number+1]; sumresult={}; sum=0; index = 1;
While[index<=n, sum=sum+result[[index]]; AppendTo[sumresult, sum]; index=index+1]; sumresult
Accumulate[Select[Total/@Partition[Range[0, 400]^2, 3, 1], PrimeQ]] (* Harvey P. Dale, Nov 24 2017 *)
PROG
(PARI) lista(nn) = {s = 0; for (n=0, nn, if (isprime(p=n^2 + (n+1)^2 + (n+2)^2), s +=p; print1(s, ", ")); ); } \\ Michel Marcus, Oct 06 2014
CROSSREFS
Cf. A027864.
Sequence in context: A167023 A316559 A284850 * A121831 A076708 A353097
KEYWORD
nonn
AUTHOR
Michael Savoric, Oct 05 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)