OFFSET
1,1
FORMULA
a(n) = pi(A023241(n)).
EXAMPLE
5 is in this sequence because: prime(5) = 11, and 11+6 = 17 and 11+12 = 23 are primes.
MATHEMATICA
Select[Range[1, PrimePi[3000]], PrimeQ[Prime[#] + 6] && PrimeQ[Prime[#] + 12] &]
PROG
(PARI) for(k=1, primepi(3000), p = prime(k); if(isprime(p+6) && isprime(p+12), print(k)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Kritsada Moomuang, Oct 24 2024
STATUS
approved