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!)
A278785 Primes p such that prime(p-2) + prime(p-1) + prime(p+1) is prime. 1
7, 17, 19, 29, 31, 37, 47, 53, 61, 67, 79, 83, 107, 127, 137, 157, 173, 179, 193, 199, 211, 229, 271, 277, 307, 331, 359, 379, 409, 419, 421, 433, 439, 443, 499, 503, 509, 523, 547, 571, 587, 619, 631, 653, 673, 677, 701, 709, 719, 727, 739, 751, 787, 823 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
31 is a member because p(n-2)=23 plus p(n-1)=29 plus p(n+1)=37 equals 89 which is prime.
MATHEMATICA
Select[Partition[Prime[Range[6000]], 4, 1], PrimeQ[First[#]+#[[2]]+ Last[ #]]&] [[All, 3]]
PROG
(PARI) is(n)=if(n<7 || !isprime(n), return(0)); my(p=prime(n-2), q=nextprime(p+1)); isprime(nextprime(n+1)+p+q) \\ Charles R Greathouse IV, Nov 28 2016
CROSSREFS
Sequence in context: A198032 A175901 A140566 * A156005 A106122 A106123
KEYWORD
nonn
AUTHOR
Harvey P. Dale, Nov 28 2016
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 16:45 EDT 2024. Contains 371989 sequences. (Running on oeis4.)