The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A117814 a(n) = 1 if at least one of decimal digits of n is a prime, otherwise a(n)=0. 0
0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
a(n) = 1 if n is a prime.
a(n) = 1 for almost all n. - Charles R Greathouse IV, Feb 26 2013
LINKS
MATHEMATICA
Table[If[Or@@PrimeQ[IntegerDigits[n]], 1, 0], {n, 0, 140}] (* Harvey P. Dale, Feb 26 2013 *)
PROG
(PARI) a(n)=#select(isprime, digits(n))>0 \\ Charles R Greathouse IV, Feb 26 2013
CROSSREFS
Sequence in context: A156660 A155899 A284932 * A257000 A062301 A181712
KEYWORD
base,easy,nonn
AUTHOR
Giovanni Teofilatto, Apr 29 2006
EXTENSIONS
Corrected by Harvey P. Dale, Feb 26 2013
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 13 21:17 EDT 2024. Contains 372523 sequences. (Running on oeis4.)