login

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”).

Primes that remain prime through 4 iterations of the function f(x) = 9x + 8.
2

%I #21 Sep 08 2022 08:44:47

%S 397,467,907,1747,1901,4099,7237,8117,8581,9371,9587,23539,28081,

%T 32611,36899,41729,54767,55207,57601,61991,64997,66449,73061,74821,

%U 75527,86291,115021,118717,125659,126067,134287,140677,147011,148147,151531,171539

%N Primes that remain prime through 4 iterations of the function f(x) = 9x + 8.

%C Primes p such that 9*p+8, 81*p+80, 729*p+728 and 6561*p+6560 are also primes. - _Vincenzo Librandi_, Aug 04 2010

%H John Cerkan, <a href="/A023326/b023326.txt">Table of n, a(n) for n = 1..10000</a>

%t Select[Prime[Range[16000]],AllTrue[Rest[NestList[9#+8&,#,4]],PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* _Harvey P. Dale_, Jun 25 2017 *)

%o (Magma) [n: n in [1..5000000] | IsPrime(n) and IsPrime(9*n+8) and IsPrime(81*n+80) and IsPrime(729*n+728) and IsPrime(6561*n+6560)] // _Vincenzo Librandi_, Aug 04 2010

%Y Subsequence of A023235, A023267, and A023298.

%K nonn

%O 1,1

%A _David W. Wilson_