This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A046117 Primes p such that p-6 is also prime. 59

%I

%S 11,13,17,19,23,29,37,43,47,53,59,67,73,79,89,103,107,109,113,137,157,

%T 163,173,179,197,199,229,233,239,257,263,269,277,283,313,317,337,353,

%U 359,373,379,389,439,449,463,467,509,547,563,569,577,593,599,607,613

%N Primes p such that p-6 is also prime.

%H T. D. Noe, <a href="/A046117/b046117.txt">Table of n, a(n) for n = 1..1000</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/SexyPrimes.html">Sexy Primes</a>.

%F a(n) = A087695(n) + 3.

%t q=6; a={}; Do[p1=Prime[n]; p2=p1+q; If[PrimeQ[p2], AppendTo[a, p2]], {n, 7^2}]; a "and/or" Select[Prime[Range[3, 7^2]], PrimeQ[ # ]&&PrimeQ[ #-6]&] (* _Vladimir Joseph Stephan Orlovsky_, Aug 07 2008 *)

%t Select[Prime[Range[4,200]],PrimeQ[#-6]&] (* _Harvey P. Dale_, Mar 31 2018 *)

%o (PARI) forprime(p=2,1e4,if(isprime(p-6),print1(p", "))) \\ _Charles R Greathouse IV_, Jul 15 2011

%Y Cf. A023201, A046117, A098428, A087695.

%K nonn

%O 1,1

%A _Eric W. Weisstein_

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified April 20 04:42 EDT 2019. Contains 322294 sequences. (Running on oeis4.)