A167677 Replace prime digits with 1 and nonprime digits with 2.
2, 2, 1, 1, 2, 1, 2, 1, 2, 2, 22, 22, 21, 21, 22, 21, 22, 21, 22, 22, 12, 12, 11, 11, 12, 11, 12, 11, 12, 12, 12, 12, 11, 11, 12, 11, 12, 11, 12, 12, 22, 22, 21, 21, 22, 21, 22, 21, 22, 22, 12, 12, 11, 11, 12, 11, 12, 11, 12, 12, 22, 22, 21, 21, 22, 21, 22, 21, 22, 22, 12, 12, 11
Offset: 0
Programs
-
Mathematica
Table[FromDigits[If[PrimeQ[ # ],1,2]&/@IntegerDigits[n]],{n,0,200}]