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!)
A179922 Primes with twelve embedded primes. 3

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

%S 113171,113173,113797,123719,153137,179719,199739,213173,229373,

%T 231197,233113,233713,236779,237331,237619,237971,241973,259397,

%U 317971,327193,343373,353173,361373,372719,373379,382373,432713,519733,521137,521317

%N Primes with twelve embedded primes.

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

%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@ 43150, f@# == 13 &]

%o (Haskell)

%o import Data.List (elemIndices)

%o a179922 n = a179922_list !! (n-1)

%o a179922_list = map (a000040 . (+ 1)) $ elemIndices 12 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 April 19 05:19 EDT 2024. Contains 371782 sequences. (Running on oeis4.)