login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A260270
Primes that contain only the digits (1, 4, 8).
2
11, 41, 181, 811, 881, 1181, 1481, 1811, 4111, 4441, 4481, 8111, 11411, 14411, 18181, 18481, 41141, 41411, 44111, 48481, 81181, 84181, 84481, 84811, 88411, 88811, 118411, 141181, 141481, 141811, 144481, 148411, 181141, 184111, 184181, 184441, 411841, 418181
OFFSET
1,1
COMMENTS
A020452 and A020456 are subsequences.
LINKS
MATHEMATICA
Select[Prime[Range[4 10^4]], Complement[IntegerDigits[#], {1, 4, 8}]=={} &]
Table[Select[10#+1&/@(FromDigits/@Tuples[{1, 4, 8}, n]), PrimeQ], {n, 5}]// Flatten (* Harvey P. Dale, Jun 08 2019 *)
PROG
(Magma) [p: p in PrimesUpTo(5*10^5) | Set(Intseq(p)) subset [1, 4, 8]];
CROSSREFS
Cf. similar sequences listed in A260266.
Sequence in context: A199209 A156733 A079304 * A118572 A333084 A201709
KEYWORD
nonn,easy,base
AUTHOR
Vincenzo Librandi, Jul 23 2015
STATUS
approved