OFFSET
1,1
COMMENTS
Primes p such that 3*p+8, 9*p+32 and 27*p+104 are also primes. - Vincenzo Librandi, Aug 04 2010
LINKS
John Cerkan, Table of n, a(n) for n = 1..10000
FORMULA
a(n) == 1 (mod 10). - John Cerkan, Sep 16 2016
MATHEMATICA
Select[Prime@ Range@ 7000, Times @@ Boole@ PrimeQ@ Rest@ NestList[3 # + 8 &, #, 3] > 0 &] (* Michael De Vlieger, Sep 19 2016 *)
PROG
(Magma) [n: n in [1..150000] | IsPrime(n) and IsPrime(3*n+8) and IsPrime(9*n+32) and IsPrime(27*n+104)] // Vincenzo Librandi, Aug 04 2010
(PARI) is(n)=isprime(n) && isprime(3*n+8) && isprime(9*n+32) && isprime(27*n+104) \\ Charles R Greathouse IV, Sep 20 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved