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!)
A228669 Numbers k for which sum{prime(2*k) - prime(2*k-1)} is prime. 1
2, 3, 4, 5, 6, 9, 14, 16, 19, 21, 23, 25, 26, 27, 32, 34, 35, 36, 37, 38, 43, 44, 49, 50, 55, 63, 64, 65, 70, 73, 76, 81, 96, 101, 107, 113, 121, 126, 129, 132, 135, 145, 147, 152, 154, 157, 158, 160, 161, 166, 171, 174, 176, 179, 180, 183, 187, 196, 197 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(6) = 9 because 3-2 + 7-5 + 13-11 + 19-17 + 29-23 + 37-31 = 19 =
A077133(6) is a prime.
MATHEMATICA
z = 300; f[n_] := Sum[Prime[2 k] - Prime[2 k - 1], {k, 1, n}]
Table[f[n], {n, 1, z}] (* A077133 *)
g[n_] := If[PrimeQ[f[n]], 1, 0]; t = Table[g[n], {n, 1, z}]; Flatten[Position[t, 1]]
Position[Accumulate[#[[2]]-#[[1]]&/@Partition[Prime[Range[400]], 2]], _?PrimeQ]//Flatten (* Harvey P. Dale, Jul 26 2018 *)
CROSSREFS
Cf. A077133.
Sequence in context: A114044 A351724 A113444 * A308020 A200444 A307972
KEYWORD
nonn
AUTHOR
Clark Kimberling, Oct 01 2013
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 July 31 03:21 EDT 2024. Contains 374774 sequences. (Running on oeis4.)