A020468 Primes that contain digits 5 and 9 only.
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
Links
- Jason Bard, Table of n, a(n) for n = 1..10000 (first 1000 terms from Vincenzo Librandi)
Crossrefs
Subsequence of A030096.
Programs
-
Magma
[p: p in PrimesUpTo(95559559 ) | Set(Intseq(p)) subset [5,9]]; // Vincenzo Librandi, Jul 27 2012
-
Mathematica
Flatten[Table[Select[FromDigits/@Tuples[{5,9},n],PrimeQ],{n,8}]] (* Vincenzo Librandi, Jul 27 2012 *)