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.

A179909 Primes with only one embedded prime.

This page as a plain text file.
%I A179909 #7 Jul 13 2013 12:03:43
%S A179909 13,17,29,31,43,47,59,67,71,79,83,97,103,107,151,163,191,199,269,281,
%T A179909 349,421,461,463,487,509,569,607,641,661,701,709,769,787,811,821,863,
%U A179909 877,887,907,911,919,941,1021,1051,1061,1063,1087,1091,1201,1249,1409
%N A179909 Primes with only one embedded prime.
%C A179909 A079066(a(n)) = 1.
%H A179909 Reinhard Zumkeller, <a href="/A179909/b179909.txt">Table of n, a(n) for n = 1..1000</a>
%t A179909 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@ 230, f@# == 2 &]
%o A179909 (Haskell)
%o A179909 import Data.List (elemIndices)
%o A179909 a179909 n = a179909_list !! (n-1)
%o A179909 a179909_list = map (a000040 . (+ 1)) $ elemIndices 1 a079066_list
%o A179909 -- _Reinhard Zumkeller_, Jul 19 2011
%Y A179909 Cf. A039996, A079397, A033274, A034844, A092621, A179909 - A179919, A033274.
%K A179909 base,nonn
%O A179909 1,1
%A A179909 _Robert G. Wilson v_, Aug 01 2010