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”).

A179912
Primes with four embedded primes.
2
137, 173, 317, 373, 379, 523, 673, 1123, 1153, 1171, 1193, 1223, 1231, 1277, 1279, 1283, 1297, 1307, 1327, 1531, 1579, 1597, 1613, 1637, 1759, 1783, 1823, 1913, 1931, 2053, 2153, 2333, 2339, 2341, 2351, 2393, 2399, 2411, 2467, 2503, 2539, 2543, 2557
OFFSET
1,1
COMMENTS
A079066(a(n)) = 4.
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@ 380, f@# == 5 &]
PROG
(Haskell)
import Data.List (elemIndices)
a179912 n = a179912_list !! (n-1)
a179912_list = map (a000040 . (+ 1)) $ elemIndices 4 a079066_list
-- Reinhard Zumkeller, Jul 19 2011
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Aug 01 2010
STATUS
approved