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!)
A038346 Sum of first n primes of form 4k+1. 3
5, 18, 35, 64, 101, 142, 195, 256, 329, 418, 515, 616, 725, 838, 975, 1124, 1281, 1454, 1635, 1828, 2025, 2254, 2487, 2728, 2985, 3254, 3531, 3812, 4105, 4418, 4735, 5072, 5421, 5774, 6147, 6536, 6933 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(n) = Sum_{k=1..n} A002144(k). - Michel Marcus, Oct 18 2021
MATHEMATICA
Accumulate[Select[Prime[Range[100]], IntegerQ[(#-1)/4]&]] (* Harvey P. Dale, Jul 25 2011 *)
PROG
(PARI) a(n) = my(s=0); forprime(p=2, , if(p%4==1, s+=p; if(n--<1, return(s)))) \\ following Charles R Greathouse IV's program for A078586
CROSSREFS
Sequence in context: A063120 A031051 A294090 * A220243 A065007 A031428
KEYWORD
easy,nonn
AUTHOR
Den Roussel (DenRoussel(AT)webtv.net)
EXTENSIONS
Offset corrected by Jianing Song, Oct 18 2021
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 May 4 10:19 EDT 2024. Contains 372238 sequences. (Running on oeis4.)