login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Primes p such that also p-24 and p+24 are primes.
3

%I #16 Feb 03 2024 00:54:40

%S 29,37,43,47,83,103,107,113,127,173,257,293,307,373,397,433,443,463,

%T 467,523,547,593,617,677,733,797,853,863,883,887,953,1063,1093,1283,

%U 1303,1423,1447,1583,1723,1777,1847,1973,2003,2063,2087,2113,2137,2333,2357

%N Primes p such that also p-24 and p+24 are primes.

%C Apart from the first term, values are 3 or 7 mod 10. - _Charles R Greathouse IV_, Oct 12 2009

%H Daniel Starodubtsev, <a href="/A161724/b161724.txt">Table of n, a(n) for n = 1..10000</a>

%e 29-24=5,29+24=53; ...

%t q=6*4; lst={}; Do[p=Prime[n]; If[PrimeQ[p-q] && PrimeQ[p+q], AppendTo[lst,p]], {n, 5000}]; lst

%Y Cf. A006489, A137796, A161723.

%K nonn,easy

%O 1,1

%A _Vladimir Joseph Stephan Orlovsky_, Jun 17 2009

%E Definition edited by _Emeric Deutsch_, Jun 28 2009