A167292 Primes containing 999 as a substring.
1999, 2999, 4999, 8999, 13999, 19991, 19993, 19997, 25999, 32999, 35999, 41999, 49991, 49993, 49999, 52999, 56999, 59999, 69991, 69997, 70999, 71999, 73999, 77999, 79997, 79999, 85999, 94999, 98999, 99901, 99907, 99923, 99929, 99961
Offset: 1
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Crossrefs
Programs
-
Mathematica
p999Q[n_] := Module[{idn=IntegerDigits[n]}, MemberQ[Partition[idn, 3, 1], {9, 9, 9}]]; Select[Prime[Range[10000]], p999Q] (* Vincenzo Librandi, Sep 15 2013 *)