login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A100317 Numbers n such that exactly one of n-1 and n+1 is prime. 5
1, 2, 3, 8, 10, 14, 16, 20, 22, 24, 28, 32, 36, 38, 40, 44, 46, 48, 52, 54, 58, 62, 66, 68, 70, 74, 78, 80, 82, 84, 88, 90, 96, 98, 100, 104, 106, 110, 112, 114, 126, 128, 130, 132, 136, 140, 148, 152, 156, 158, 162, 164, 166, 168, 172, 174, 178, 182, 190, 194, 196, 200 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

COMMENTS

Beginning with a(2)=3, n such that exactly one of n-1 and n+1 is composite.

PROG

(PARI) for(n=1, 500, if(isprime(n-1)+isprime(n+1)==1, print1(n, ", ")))

CROSSREFS

Cf. A100318 (at least one of n-1 and n+1 is composite).

Cf. A001477, A169546, A171689, A099049.

Sequence in context: A097053 A190668 A132327 * A060697 A093353 A083799

Adjacent sequences:  A100314 A100315 A100316 * A100318 A100319 A100320

KEYWORD

nonn

AUTHOR

Rick L. Shepherd (rshepherd2(AT)hotmail.com), Nov 13 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 22:22 EST 2012. Contains 205678 sequences.