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!)
A179917 Primes with nine embedded primes. 2

%I #6 Feb 22 2013 21:38:32

%S 11317,19739,19973,21317,21379,22397,22937,23117,23173,23371,23971,

%T 24373,26317,27197,29173,29537,32719,33739,33797,37397,39719,51137,

%U 51973,52313,53173,53479,53719,57173,57193,61379,61979,63179,66173

%N Primes with nine embedded primes.

%C A079066(a(n)) = 9.

%t 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 &]

%o (Haskell)

%o import Data.List (elemIndices)

%o a179917 n = a179917_list !! (n-1)

%o a179917_list = map (a000040 . (+ 1)) $ elemIndices 9 a079066_list

%o -- _Reinhard Zumkeller_, Jul 19 2011

%Y Cf. A039996, A079397, A033274, A034844, A092621, A179909 - A179919, A033274.

%K base,nonn

%O 1,1

%A _Robert G. Wilson v_, Aug 01 2010

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 July 12 06:23 EDT 2024. Contains 374237 sequences. (Running on oeis4.)