OFFSET
1,1
COMMENTS
Primes p such that 3*p+8 and 9*p+32 are also primes. - Vincenzo Librandi, Aug 04 2010
LINKS
John Cerkan, Table of n, a(n) for n = 1..10000
FORMULA
a(n) == 1 or 3 (mod 10) for n >= 2. - John Cerkan, Sep 13 2016
MATHEMATICA
Select[Range@ 5280, Times @@ Boole@ PrimeQ@ NestList[3 # + 8 &, #, 2] > 0 &] (* Michael De Vlieger, Sep 13 2016 *)
fQ[p_]:=AllTrue[Rest[NestList[3#+8&, p, 2]], PrimeQ]; Select[Prime[Range[700]], fQ] (* Harvey P. Dale, Sep 01 2024 *)
PROG
(Magma) [n: n in [0..100000] | IsPrime(n) and IsPrime(3*n+8) and IsPrime(9*n+32)]; // Vincenzo Librandi, Aug 04 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved