Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #16 Feb 03 2024 00:54:43
%S 37,41,43,53,59,67,71,73,83,97,101,109,127,137,167,181,193,197,211,
%T 227,241,263,281,307,337,367,379,389,409,419,431,449,461,479,491,571,
%U 577,587,601,617,631,643,647,661,739,757,827,853,857,907,911,937,941,967
%N Primes p such that also p+30 and p-30 are primes.
%H Daniel Starodubtsev, <a href="/A161725/b161725.txt">Table of n, a(n) for n = 1..10000</a>
%e The prime p=37 is in the sequence because 37-30=7 and 37+30=67 are also primes.
%t q=6*5; lst={}; Do[p=Prime[n]; If[PrimeQ[p-q] && PrimeQ[p+q], AppendTo[lst,p]], {n, 5000}]; lst
%Y Cf. A006489, A137796, A161723, A161724, A052243.
%K nonn
%O 1,1
%A _Vladimir Joseph Stephan Orlovsky_, Jun 17 2009
%E Definition edited by _Emeric Deutsch_, Jun 28 2009