login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Primes containing 888 as a substring.
3

%I #8 Sep 15 2013 04:16:16

%S 8887,48883,48889,58889,68881,78887,78889,88801,88807,88811,88813,

%T 88817,88819,88843,88853,88861,88867,88873,88883,88897,98887,108881,

%U 108883,108887,138883,138889,158881,168887,178889,188801,188827,188831,188833

%N Primes containing 888 as a substring.

%H Vincenzo Librandi, <a href="/A167290/b167290.txt">Table of n, a(n) for n = 1..1000</a>

%t p888Q[n_] := Module[{idn=IntegerDigits[n]}, MemberQ[Partition[idn, 3, 1], {8, 8, 8}]]; Select[Prime[Range[20000]], p888Q] (* _Vincenzo Librandi_, Sep 15 2013 *)

%Y Cf. A166571 - A166573, A166579 - A166582, A167281, A167282.

%K nonn

%O 1,1

%A _Vincenzo Librandi_, Nov 01 2009