OFFSET
1,1
COMMENTS
Primes p such that 5*p+8, 25*p+48 and 125*p+248 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 6). - John Cerkan, Sep 21 2016
MATHEMATICA
it3Q[n_]:=AllTrue[Rest[NestList[5#+8&, n, 3]], PrimeQ]; Select[ Prime[ Range[ 3500]], it3Q] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jul 21 2015 *)
PROG
(Magma) [n: n in [1..150000] | IsPrime(n) and IsPrime(5*n+8) and IsPrime(25*n+48) and IsPrime(125*n+248)] // Vincenzo Librandi, Aug 04 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved