login
This site is supported by donations 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

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

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

Adjacent sequences:  A117811 A117812 A117813 * A117815 A117816 A117817

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 26 00:37 EDT 2019. Contains 321479 sequences. (Running on oeis4.)