login
A020468
Primes that contain digits 5 and 9 only.
6
5, 59, 599, 59999, 95959, 99559, 599959, 599999, 995959, 999599, 999959, 5595559, 5595599, 5599999, 5955959, 5995999, 5999599, 9555599, 9559999, 9595559, 9955559, 9995599, 55555559, 55559599, 55595599, 55599959, 55959559, 59999999, 95559559
OFFSET
1,1
LINKS
MATHEMATICA
Flatten[Table[Select[FromDigits/@Tuples[{5, 9}, n], PrimeQ], {n, 8}]] (* Vincenzo Librandi, Jul 27 2012 *)
PROG
(Magma) [p: p in PrimesUpTo(95559559 ) | Set(Intseq(p)) subset [5, 9]]; // Vincenzo Librandi, Jul 27 2012
CROSSREFS
Sequence in context: A099151 A243219 A113055 * A093946 A249519 A371327
KEYWORD
nonn,base
STATUS
approved