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!)
A309265 Numbers k such that s + t = k with 0 < s < t where s and t-s are both prime. 1
6, 7, 8, 9, 11, 12, 13, 15, 16, 17, 19, 21, 23, 24, 25, 27, 28, 29, 31, 33, 35, 36, 37, 39, 40, 41, 43, 45, 47, 48, 49, 51, 53, 55, 57, 59, 60, 61, 63, 64, 65, 67, 69, 71, 73, 75, 76, 77, 79, 81, 83, 84, 85, 87, 88, 89, 91, 93, 95, 96, 97, 99, 101, 103, 105 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Essentially the same as A210147 with s=p, t-s=q. - R. J. Mathar, Aug 09 2019
LINKS
EXAMPLE
6 is in the sequence since there are numbers s=2 and t=4 such that s + t = 6 with s < t, and where s=2 and t-s = 4-2 = 2 are both prime.
7 is in the sequence since there are numbers s=3 and t=5 such that s + t = 7 with s < t and where s=3 and t-s = 5-3 = 2 are both prime.
MATHEMATICA
Flatten[Table[If[Sum[(PrimePi[i] - PrimePi[i - 1]) (PrimePi[n - 2 i] - PrimePi[n - 2 i - 1]), {i, Floor[n/2]}] > 0, n, {}], {n, 100}]]
PROG
(PARI) isok(k) = {forprime (s=1, k, if (((t = k - s) > s) && isprime(t-s), return (1)); ); } \\ Michel Marcus, Jul 20 2019
CROSSREFS
Sequence in context: A081408 A143616 A005050 * A309404 A120191 A059983
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jul 19 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 June 1 19:09 EDT 2024. Contains 373027 sequences. (Running on oeis4.)