OFFSET
1,1
COMMENTS
Primes p such that 3*p+8, 9*p+32, 27*p+104, 81*p+320, and 243*p+968 are also primes. - Vincenzo Librandi, Aug 05 2010
LINKS
John Cerkan, Table of n, a(n) for n = 1..10000
FORMULA
a(n) == 31 (mod 70). - John Cerkan, Oct 11 2016
MATHEMATICA
Select[Prime[Range[500000]], And@@PrimeQ[Rest[NestList[3#+8&, #, 5]]]&] (* Harvey P. Dale, Apr 07 2014 *)
PROG
(Magma) [n: n in [1..25000000] | IsPrime(n) and IsPrime(3*n+8) and IsPrime(9*n+32) and IsPrime(27*n+104) and IsPrime(81*n+320) and IsPrime(243*n+968)] // Vincenzo Librandi, Aug 05 2010
(PARI) is(n)=isprime(n) && isprime(3*n+8) && isprime(9*n+32) && isprime(27*n+104) && isprime(81*n+320) && isprime(243*n+968) \\ Charles R Greathouse IV, Oct 11 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved