login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A172072
Numbers n such that either prime(n)-5/2-+7/2 is prime.
1
1, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 17, 19, 21, 22, 24, 27, 28, 29, 30, 33, 37, 38, 40, 41, 45, 46, 50, 51, 52, 55, 56, 57, 59, 61, 65, 66, 68, 71, 72, 74, 75, 77, 85, 87, 90, 91, 97, 101, 103, 104, 106, 108, 109, 111, 112, 114, 118, 119, 120, 124, 130, 131, 134, 144
OFFSET
1,2
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1)=1 because prime(1)-5/2-7/2=2-5/2-7/2=-4(nonprime) and prime(1)-5/2+7/2=2-5/2+7/2=3(prime).
PROG
(PARI) is(n, p=prime(n))=isprime(p-6) || isprime(p+1) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Corrected (57 inserted) by R. J. Mathar, May 02 2010
STATUS
approved