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!)
A309718 Numbers k such that the sums of the first k and k+2 primes are also prime. 1
2, 4, 12, 100, 122, 130, 204, 206, 214, 326, 328, 330, 332, 356, 458, 1024, 1148, 1190, 1418, 1474, 1476, 1500, 1524, 1630, 1842, 1948, 2128, 2130, 2184, 2436, 2448, 2536, 2686, 2688, 2784, 2796, 2898, 2980, 3112, 3562, 3682, 3806, 3936, 3944, 4114, 4318, 4332, 4364, 4376, 4412 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The first run of four consecutive terms that differ by two, starts at k = 326.
The first run of five consecutive terms that differ by two, starts at k = 1195374. - Daniel Suteu, Aug 17 2019
LINKS
EXAMPLE
For k=2, the sum of the first two primes 2+3 = 5 is prime. Additionally, the sum of the first k + 2=4 primes 2+3+5+7 = 17 is prime. So 2 is a term.
For k=6, the sum of the first six primes 2+3+5+7+11+13 = 41 is prime. But, the sum of the first k+2=8 primes 2+3+5+7+11+13+17+19 = 77 is not a prime. So 6 is not a term.
MAPLE
P:= [seq(ithprime(i), i=1..10002)]:
S:= ListTools:-PartialSums(P):
select(k -> isprime(S[k]) and isprime(S[k+2]), 2*[$1..5000]); # Robert Israel, Sep 01 2019
PROG
(PARI) isspp(n) = isprime(sum(i=1, n, prime(i))); \\ A013916
isok(n) = isspp(n) && isspp(n+2); \\ Michel Marcus, Aug 14 2019
CROSSREFS
Cf. A013916.
Sequence in context: A259048 A228809 A326945 * A230814 A325502 A038791
KEYWORD
nonn
AUTHOR
Philip Mizzi, Aug 13 2019
EXTENSIONS
More terms from Michel Marcus, Aug 14 2019
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 25 05:18 EDT 2024. Contains 371964 sequences. (Running on oeis4.)