OFFSET
1,1
COMMENTS
a(n) = 0 if n is a member of A060461, otherwise a(n) = 1.
LINKS
MATHEMATICA
If[AllTrue[6#+{1, -1}, CompositeQ], 0, 1]&/@Range[300] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Feb 15 2015 *)
PROG
(PARI) A161996(n) = (isprime((6*n)-1)||isprime((6*n)+1)); \\ Antti Karttunen, Dec 15 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Pierre CAMI, Jun 24 2009
EXTENSIONS
Definition rephrased by R. J. Mathar, Aug 14 2009
STATUS
approved