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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A087696 Numbers n such that n +/- 5 are both primes. 4
8, 12, 18, 24, 36, 42, 48, 66, 78, 84, 102, 108, 132, 144, 162, 168, 186, 228, 234, 246, 276, 288, 312, 342, 354, 378, 384, 414, 426, 438, 444, 462, 504, 552, 582, 612, 636, 648, 678, 696, 714, 738, 756, 792, 816, 834, 858, 882, 924, 942, 972 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..51.

MAPLE

ZL:=[]:for p from 1 to 973 do if (isprime(p) and isprime(p+10) ) then ZL:=[op(ZL), (p+(p+10))/2]; fi; od; print(ZL); - Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Mar 07 2007

MATHEMATICA

f[n_]:=PrimeQ[n-5]&&PrimeQ[n+5]; lst={}; Do[If[f[n], AppendTo[lst, n]], {n, 4, 8!, 2}]; lst [From Vladimir Joseph Stephan Orlovsky, Oct 09 2009]

CROSSREFS

Cf. A014574, A087678-A087683, A087695-A087697, A088765.

Sequence in context: A090738 A085103 A157940 * A015897 A028393 A066681

Adjacent sequences:  A087693 A087694 A087695 * A087697 A087698 A087699

KEYWORD

easy,nonn

AUTHOR

Zak Seidov, Sep 27 2003

STATUS

approved

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 May 24 17:45 EDT 2013. Contains 225626 sequences.