OFFSET
1,2
COMMENTS
Note that if prime p>3 then p mod 6 = 1 or 5.
LINKS
M. F. Hasler, Table of n, a(n) for n = 1..5000
FORMULA
a(n) = floor(A087679(n+1)/6). - M. F. Hasler, Apr 05 2017
EXAMPLE
a(2)=2 since 6*2+1=13 and 6*2+5=17 are both prime.
MATHEMATICA
Select[Range[300], And @@ PrimeQ /@ ({1, 5} + 6#) &] (* Ray Chandler, Jun 29 2008 *)
PROG
(PARI) is(n)=isprime(n*6+1)&&isprime(n*6+5) \\ M. F. Hasler, Apr 05 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Henry Bottomley, Jul 18 2000
EXTENSIONS
Edited by N. J. A. Sloane, Nov 07 2006
STATUS
approved