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.

A179917 Primes with nine embedded primes.

This page as a plain text file.
%I A179917 #6 Feb 22 2013 21:38:32
%S A179917 11317,19739,19973,21317,21379,22397,22937,23117,23173,23371,23971,
%T A179917 24373,26317,27197,29173,29537,32719,33739,33797,37397,39719,51137,
%U A179917 51973,52313,53173,53479,53719,57173,57193,61379,61979,63179,66173
%N A179917 Primes with nine embedded primes.
%C A179917 A079066(a(n)) = 9.
%t A179917 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@ 6610, f@# == 10 &]
%o A179917 (Haskell)
%o A179917 import Data.List (elemIndices)
%o A179917 a179917 n = a179917_list !! (n-1)
%o A179917 a179917_list = map (a000040 . (+ 1)) $ elemIndices 9 a079066_list
%o A179917 -- _Reinhard Zumkeller_, Jul 19 2011
%Y A179917 Cf. A039996, A079397, A033274, A034844, A092621, A179909 - A179919, A033274.
%K A179917 base,nonn
%O A179917 1,1
%A A179917 _Robert G. Wilson v_, Aug 01 2010