login
A176235
Numbers n such that one of nonprime(n)-1 or nonprime(n)+1 is prime.
0
1, 4, 6, 8, 10, 12, 14, 15, 19, 21, 25, 26, 28, 30, 32, 33, 37, 38, 42, 44, 48, 49, 51, 53, 57, 58, 60, 61, 65, 66, 72, 73, 75, 77, 79, 81, 83, 84, 96, 97, 99, 100, 104, 106, 114, 116, 120, 121, 125, 126, 128, 129, 133, 134, 138, 140, 148, 150, 152, 154, 164, 165, 175
OFFSET
1,2
COMMENTS
Exactly one of A018252(n)-1 and A018252(n)+1 is prime.
EXAMPLE
a(1)=1 because nonprime(1)-1=0=nonnegative nonprime and nonprime(1)+1=2=prime.
CROSSREFS
Sequence in context: A248419 A186389 A039767 * A201221 A185604 A054023
KEYWORD
nonn
AUTHOR
EXTENSIONS
Corrected (101 removed) by R. J. Mathar, Apr 16 2010
STATUS
approved