login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A167678 Replace prime digits with 2 and nonprime digits with 1. 2
1, 1, 2, 2, 1, 2, 1, 2, 1, 1, 11, 11, 12, 12, 11, 12, 11, 12, 11, 11, 21, 21, 22, 22, 21, 22, 21, 22, 21, 21, 21, 21, 22, 22, 21, 22, 21, 22, 21, 21, 11, 11, 12, 12, 11, 12, 11, 12, 11, 11, 21, 21, 22, 22, 21, 22, 21, 22, 21, 21, 11, 11, 12, 12, 11, 12, 11, 12, 11, 11, 21, 21, 22 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Table of n, a(n) for n=0..72.

MATHEMATICA

Table[FromDigits[If[PrimeQ[ # ], 2, 1]&/@IntegerDigits[n]], {n, 0, 200}]

CROSSREFS

Cf. A065031, A167677, A167679.

Sequence in context: A323826 A275824 A324869 * A078614 A026607 A319981

Adjacent sequences:  A167675 A167676 A167677 * A167679 A167680 A167681

KEYWORD

base,nonn

AUTHOR

Zak Seidov, Nov 09 2009

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 14 00:04 EDT 2021. Contains 342941 sequences. (Running on oeis4.)