The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A071149 Numbers n such that the sum of the first n odd primes (A071148) is prime; analogous to A013916. 3
1, 9, 15, 17, 53, 55, 61, 65, 71, 75, 95, 115, 117, 137, 141, 143, 155, 183, 191, 203, 249, 273, 275, 283, 291, 305, 339, 341, 377, 409, 411, 415, 435, 439, 449, 483, 495, 497, 509, 525, 583, 599, 605, 621, 633, 637, 643, 645, 671, 675, 709, 713, 715, 727 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = pi(A071150(n)). - Charles R Greathouse IV, May 13 2015
MAPLE
Primes:= select(isprime, [seq(2*i+1, i=1..10^4)]):
L:= ListTools:-PartialSums(Primes):
select(i -> isprime(L[i]), [$1..nops(L)]); # Robert Israel, May 19 2015
MATHEMATICA
Position[Accumulate@ Prime@ Range[2, 750], _?(PrimeQ@# &)] // Flatten (* Robert G. Wilson v, May 19 2015, after Harvey P. Dale in A013916 *)
PROG
(PARI) s=n=0; forprime(p=3, 1e4, n++; if(isprime(s+=p), print1(n", "))) \\ Charles R Greathouse IV, May 13 2015
CROSSREFS
Sequence in context: A363896 A061838 A037002 * A289689 A316752 A358725
KEYWORD
nonn
AUTHOR
Labos Elemer, May 13 2002
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 13 16:16 EDT 2024. Contains 372522 sequences. (Running on oeis4.)