OFFSET
1,1
COMMENTS
Primes p such that 3*p+10, 9*p+40, 27*p+130, 81*p+400 and 243*p+1210 are also primes. - Vincenzo Librandi, Aug 05 2010
LINKS
John Cerkan, Table of n, a(n) for n = 1..10000
FORMULA
a(n) == 9 (mod 14). - John Cerkan, Oct 11 2016
MATHEMATICA
rp5Q[p_]:=AllTrue[Rest[NestList[3#+10&, p, 5]], PrimeQ]; Select[Prime[ Range[ 150000]], rp5Q] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Mar 17 2020 *)
PROG
(Magma) [n: n in [1..25000000] | IsPrime(n) and IsPrime(3*n+10) and IsPrime(9*n+40) and IsPrime(27*n+130) and IsPrime(81*n+400) and IsPrime(243*n+1210)] // Vincenzo Librandi, Aug 05 2010
(PARI) is(n)=isprime(n) && isprime(3*n+10) && isprime(9*n+40) && isprime(27*n+130) && isprime(81*n+400) && isprime(243*n+1210) \\ Charles R Greathouse IV, Oct 11 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Definition clarified by Harvey P. Dale, Mar 17 2020
STATUS
approved