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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A099047 Numbers n such that n-1 and n+1 are both composite. 1
5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 26, 27, 29, 31, 33, 34, 35, 37, 39, 41, 43, 45, 47, 49, 50, 51, 53, 55, 56, 57, 59, 61, 63, 64, 65, 67, 69, 71, 73, 75, 76, 77, 79, 81, 83, 85, 86, 87, 89, 91, 92, 93, 94, 95, 97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 116, 117 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

MATHEMATICA

Select[Range[6! ], !PrimeQ[ #-1]&&!PrimeQ[ #+1]&] [From Vladimir Orlovsky (4vladimir(AT)gmail.com), Apr 26 2010]

PROG

(PARI) for(n=5, 200, if(!isprime(n-1)&&!isprime(n+1), print1(n, ", ")))

CROSSREFS

Sequence in context: A168146 A106505 A097985 * A174392 A084926 A049013

Adjacent sequences:  A099044 A099045 A099046 * A099048 A099049 A099050

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 17 06:12 EST 2012. Contains 205990 sequences.