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”).

A020459
Primes that contain digits 2 and 7 only.
8
2, 7, 227, 277, 727, 2777, 7727, 22277, 22727, 22777, 27277, 72227, 72277, 72727, 272227, 272777, 727777, 777277, 2227727, 2227777, 2272727, 2277727, 2727727, 2772227, 7272227, 7722277, 7727777, 7772777, 7777727, 22227277, 22272277
OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..20000 (first 1000 terms from Vincenzo Librandi)
James Maynard and Brady Haran, Primes without a 7, Numberphile video (2019)
MATHEMATICA
Flatten[Table[Select[FromDigits/@Tuples[{2, 7}, n], PrimeQ], {n, 8}]] (* Vincenzo Librandi, Jul 27 2012 *)
PROG
(Magma) [p: p in PrimesUpTo(22272277) | Set(Intseq(p)) subset [2, 7]]; // Vincenzo Librandi, Jul 27 2012
CROSSREFS
KEYWORD
nonn,base
STATUS
approved