OFFSET
0,1
COMMENTS
Classify all integers 14n+r with r= 1, 3, 5, 9, 11 or 13 as nonprime or prime and assign hit positions 0=LSB, 1, 2, 3, 4, 5=MSB to the 6 remainders in the same order. Raise the bit if 14n+r is nonprime, erase it if 14n+r is prime.
The sequence interprets this as a number in base 2 and shows the decimal representation.
EXAMPLE
For n=2, the 6 numbers 29 (r=1), 31 (r=3), 33 (r=5), 37 (r=9), 39 (r=11) and 41 (r=13) are prime, prime, nonprime, prime, nonprime, prime, which is rendered into the binary 001010 = 2^2+2^4=4+16=20=a(2).
MATHEMATICA
f[n_]:=FromDigits[1-Boole[PrimeQ[({13, 11, 9, 5, 3, 1}+14n)]], 2]; Table[f[n], {n, 0, 100}] (* Ray Chandler, Feb 20 2009 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Jul 07 2008
EXTENSIONS
Corrected and extended by Ray Chandler, Feb 20 2009
STATUS
approved