%I #20 Sep 08 2022 08:44:47
%S 7,43,883,2269,2917,7621,15541,15937,36541,38113,54787,60961,67033,
%T 71359,77491,79693,82531,84967,112621,129589,176461,185683,192547,
%U 239671,248071,267373,271489,271549,310231,316471,340957,343267,350617,382303
%N Primes that remain prime through 4 iterations of function f(x) = 5x + 8.
%C Primes p such that 5*p+8, 25*p+48, 125*p+248 and 625*p+1248 are also primes. - _Vincenzo Librandi_, Aug 04 2010
%H John Cerkan, <a href="/A023316/b023316.txt">Table of n, a(n) for n = 1..10000</a>
%F a(n) == 1 or 19 (mod 42) for n > 1. - _John Cerkan_, Oct 07 2016
%o (Magma) [n: n in [1..1000000] | IsPrime(n) and IsPrime(5*n+8) and IsPrime(25*n+48) and IsPrime(125*n+248) and IsPrime(625*n+1248)] // _Vincenzo Librandi_, Aug 04 2010
%o (PARI) is(n)=isprime(n) && isprime(5*n+8) && isprime(25*n+48) && isprime(125*n+248) && isprime(625*n+1248) \\ _Charles R Greathouse IV_, Oct 08 2016
%Y Subsequence of A023220, A023255, A023286, and A111225.
%K nonn
%O 1,1
%A _David W. Wilson_
|