cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A179912 Primes with four embedded primes.

This page as a plain text file.
%I A179912 #6 Feb 22 2013 21:38:32
%S A179912 137,173,317,373,379,523,673,1123,1153,1171,1193,1223,1231,1277,1279,
%T A179912 1283,1297,1307,1327,1531,1579,1597,1613,1637,1759,1783,1823,1913,
%U A179912 1931,2053,2153,2333,2339,2341,2351,2393,2399,2411,2467,2503,2539,2543,2557
%N A179912 Primes with four embedded primes.
%C A179912 A079066(a(n)) = 4.
%t A179912 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 &]
%o A179912 (Haskell)
%o A179912 import Data.List (elemIndices)
%o A179912 a179912 n = a179912_list !! (n-1)
%o A179912 a179912_list = map (a000040 . (+ 1)) $ elemIndices 4 a079066_list
%o A179912 -- _Reinhard Zumkeller_, Jul 19 2011
%Y A179912 Cf. A039996, A079397, A033274, A034844, A092621, A179909 - A179919, A033274.
%K A179912 base,nonn
%O A179912 1,1
%A A179912 _Robert G. Wilson v_, Aug 01 2010