OFFSET
1,1
COMMENTS
A079066(a(n)) = 9.
MATHEMATICA
f[n_] := Block[ {id = IntegerDigits@n}, len = Length@ id - 1; Count[ PrimeQ@ Union[ FromDigits@# & /@ Flatten[ Table[ Partition[ id, k, 1], {k, len}], 1]], True] + 1]; Select[ Prime@ Range@ 6610, f@# == 10 &]
PROG
(Haskell)
import Data.List (elemIndices)
a179917 n = a179917_list !! (n-1)
a179917_list = map (a000040 . (+ 1)) $ elemIndices 9 a079066_list
-- Reinhard Zumkeller, Jul 19 2011
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Aug 01 2010
STATUS
approved