OFFSET
1,2
COMMENTS
The idea is to consider 2-bit words, where the least resp. most significant bit correspond to primality of the respective member in the couple (6n-1,6n-5). (It might have been more natural to inverse the correspondences, i.e. to associate the LSB to the smaller number of the pair.) - M. F. Hasler, Jun 16 2008
MATHEMATICA
a[n_]:=Boole[PrimeQ[6n-1]]+2Boole[PrimeQ[6n-5]]; Array[a, 87] (* James C. McMahon, Jul 08 2025 *)
PROG
(PARI) a(n)=isprime(6*n-5)<<1+isprime(6*n-1) \\ M. F. Hasler, Jun 16 2008
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Jun 10 2008
EXTENSIONS
Edited by M. F. Hasler, Jun 16 2008
a(61)-a(87) from James C. McMahon, Jul 08 2025
STATUS
approved
