login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Primes with five embedded primes.
2

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

%S 1237,1319,1367,1523,1571,1723,1753,1979,1997,2131,2179,2239,2273,

%T 2293,2297,2357,2377,2383,2389,2417,2437,2473,2531,2579,2593,2617,

%U 2711,2731,2753,2797,3119,3167,3257,3271,3313,3371,3547,3571,3593,3617,3671,3677

%N Primes with five embedded primes.

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

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

%o (Haskell)

%o import Data.List (elemIndices)

%o a179913 n = a179913_list !! (n-1)

%o a179913_list = map (a000040 . (+ 1)) $ elemIndices 5 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