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.

A179911 Primes with three embedded primes.

This page as a plain text file.
%I A179911 #7 Jul 13 2013 12:03:43
%S A179911 113,131,179,197,223,233,239,257,271,283,293,311,313,337,347,353,359,
%T A179911 367,397,431,479,547,571,593,613,617,653,719,733,739,743,773,797,823,
%U A179911 853,937,953,971,1013,1031,1097,1103,1117,1129,1151,1163,1213,1217,1229
%N A179911 Primes with three embedded primes.
%C A179911 A079066(a(n)) = 3.
%H A179911 Reinhard Zumkeller, <a href="/A179911/b179911.txt">Table of n, a(n) for n = 1..1000</a>
%t A179911 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@ 210, f@# == 4 &]
%o A179911 (Haskell)
%o A179911 import Data.List (elemIndices)
%o A179911 a179911 n = a179911_list !! (n-1)
%o A179911 a179911_list = map (a000040 . (+ 1)) $ elemIndices 3 a079066_list
%o A179911 -- _Reinhard Zumkeller_, Jul 19 2011
%Y A179911 Cf. A039996, A079397, A033274, A034844, A092621, A179909 - A179919, A033274.
%K A179911 base,nonn
%O A179911 1,1
%A A179911 _Robert G. Wilson v_, Aug 01 2010