OFFSET
1,1
COMMENTS
Primes p such that 6*p+1 and 36*p+7 are also primes. - Vincenzo Librandi, Aug 04 2010
Subsequence of A007693. - Michel Marcus, Oct 17 2015
LINKS
John Cerkan, Table of n, a(n) for n = 1..10000
FORMULA
a(n) == 1 or 7 (mod 10) for n > 1. - John Cerkan, Sep 14 2016
MATHEMATICA
Select[Prime[Range[800]], AllTrue[Rest[NestList[6#+1&, #, 2]], PrimeQ]&] (* Harvey P. Dale, Oct 17 2020 *)
PROG
(Magma) [n: n in [0..100000] | IsPrime(n) and IsPrime(6*n+1) and IsPrime(36*n+7)] // Vincenzo Librandi, Aug 04 2010
(PARI) lista(nn) = forprime(n=1, nn, if (isprime(p=6*n+1) && isprime(6*p+1), print1(n, ", "))); \\ Michel Marcus, Oct 17 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved