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

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

%S 1733,1973,2113,2137,2237,2311,2347,2371,2713,2719,2837,2953,2971,

%T 3373,3673,3719,3733,3739,4337,4373,4397,4673,5231,5233,5347,5479,

%U 6131,6197,6317,6733,6737,7193,7331,7523,8237,8317,8537,9719,10313,10337,10937

%N Primes with six embedded primes.

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

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

%o (Haskell)

%o import Data.List (elemIndices)

%o a179914 n = a179914_list !! (n-1)

%o a179914_list = map (a000040 . (+ 1)) $ elemIndices 6 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 25 06:14 EDT 2024. Contains 371964 sequences. (Running on oeis4.)