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!)
A172988 Primes p such that either p-3 or p-6 is prime. 0
5, 11, 13, 17, 19, 23, 29, 37, 43, 47, 53, 59, 67, 73, 79, 89, 103, 107, 109, 113, 137, 157, 163, 173, 179, 197, 199, 229, 233, 239, 257, 263, 269, 277, 283, 313, 317, 337, 353, 359, 373, 379, 389, 439, 449, 463, 467, 509, 547, 563, 569, 577, 593, 599, 607, 613 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
5 is the only prime p for which p-3 is prime, since p-3 is even for any odd prime and 2 is the only even prime. - Harvey P. Dale, Apr 03 2019
LINKS
FORMULA
a(n)=A046117(n+1).
MATHEMATICA
Select[Prime[Range[150]], AnyTrue[#+{-3, -6}, PrimeQ]&] (* Requires Mathematica version 10 or later *) (* or *) Join[{5}, Select[Prime[ Range[ 3, 150]], PrimeQ[#-6]&]] (* see Comment *) (* Harvey P. Dale, Apr 03 2019 *)
CROSSREFS
Sequence in context: A216227 A020611 A156312 * A020604 A268476 A082554
KEYWORD
nonn
AUTHOR
EXTENSIONS
449 inserted by R. J. Mathar, Mar 09 2010
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 23 16:40 EDT 2024. Contains 371916 sequences. (Running on oeis4.)