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.

A179922 Primes with twelve embedded primes.

This page as a plain text file.
%I A179922 #6 Feb 22 2013 21:38:32
%S A179922 113171,113173,113797,123719,153137,179719,199739,213173,229373,
%T A179922 231197,233113,233713,236779,237331,237619,237971,241973,259397,
%U A179922 317971,327193,343373,353173,361373,372719,373379,382373,432713,519733,521137,521317
%N A179922 Primes with twelve embedded primes.
%C A179922 A079066(a(n)) = 12.
%t A179922 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 A179922 (Haskell)
%o A179922 import Data.List (elemIndices)
%o A179922 a179922 n = a179922_list !! (n-1)
%o A179922 a179922_list = map (a000040 . (+ 1)) $ elemIndices 12 a079066_list
%o A179922 -- _Reinhard Zumkeller_, Jul 19 2011
%Y A179922 Cf. A039996, A079397, A033274, A034844, A092621, A179909 - A179919, A033274.
%K A179922 base,nonn
%O A179922 1,1
%A A179922 _Robert G. Wilson v_, Aug 01 2010