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!)
A125167 Numbers n such that the n-th prime + n-th nonprime is itself prime. 1
1, 2, 3, 6, 7, 15, 20, 26, 29, 30, 35, 40, 42, 43, 46, 52, 57, 61, 65, 70, 75, 84, 92, 99, 100, 102, 105, 125, 139, 140, 144, 149, 154, 164, 171, 179, 183, 197, 202, 214, 218, 223, 227, 232, 234, 245, 247, 251, 258, 265, 272, 280, 288, 290, 294, 299, 304, 323, 325 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
The 15th prime is 47, while the 15th nonprime is 24. 47+24=71 which is itself prime. Similarly, the 30th prime is 113, while the 30th nonprime is 44. 113+44=157 which is prime.
MATHEMATICA
Module[{nn=500, np, tbl}, np=Select[Range[nn], !PrimeQ[#]&]; tbl=Table[{n, np[[n]]+Prime[n]}, {n, Length[ np]}]; Select[tbl, PrimeQ[#[[2]]]&]][[;; , 1]] (* Harvey P. Dale, Sep 21 2023 *)
CROSSREFS
Sequence in context: A294524 A032882 A265394 * A137604 A034901 A343149
KEYWORD
easy,nonn
AUTHOR
Jason G. Wurtzel, Nov 22 2006
EXTENSIONS
More terms from Klaus Brockhaus, Nov 23 2006
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 21 02:29 EDT 2024. Contains 372720 sequences. (Running on oeis4.)