Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A039997
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A039997 Number of distinct primes which occur as substrings of the digits of n. +0
8
0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 2, 0, 1, 0, 2, 0, 1, 1, 1, 1, 3, 1, 2, 1, 2, 1, 2, 1, 2, 2, 1, 1, 2, 1, 3, 1, 1, 0, 1, 1, 2, 0, 1, 0, 2, 0, 0, 1, 1, 2, 3, 1, 1, 1, 2, 1, 2, 0, 1, 1, 1, 0, 1, 0, 2, 0, 0, 1, 2, 2, 3, 1, 2, 1, 1, 1, 2, 0, 0, 1, 2, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 2, 0, 0, 0, 1, 1, 2, 0, 1 (list; graph; listen)
OFFSET

1,13

COMMENT

a(A062115(n))=0; a(A093301(n))=n and a(m)<>n for m<A093301(n). - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Jul 16 2007

LINKS

R. Zumkeller, Table of n, a(n) for n = 1..10000

EXAMPLE

a(22)=1 because 22 has two substrings which are prime but they are identical. a(103)=2, since the primes 3 and 103 occur as substrings.

MATHEMATICA

a[n_] := Block[{s = IntegerDigits[n], c = 0, d = {}}, l = Length[s]; t = Flatten[ Table[ Take[s, {i, j}], {i, 1, l}, {j, i, l}], 1]; k = l(l + 1)/2; While[k > 0, If[ t[[k]][[1]] != 0, d = Append[d, FromDigits[ t[[k]] ]]]; k-- ]; Count[ PrimeQ[ Union[d]], True]]; Table[ a[n], {n, 1, 105}]

CROSSREFS

Different from A039995 after the 100th term. Cf. A035232.

Sequence in context: A131743 A147648 A113686 this_sequence A039995 A035232 A091603

Adjacent sequences: A039994 A039995 A039996 this_sequence A039998 A039999 A040000

KEYWORD

nonn,base

AUTHOR

Dave Wilson

EXTENSIONS

Edited by Robert G. Wilson v (rgwv(AT)rgwv.com), Feb 24 2003

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 29 12:46 EST 2009. Contains 167659 sequences.


AT&T Labs Research