A020460 Primes that contain digits 2 and 9 only.
2, 29, 229, 929, 2999, 9929, 22229, 99929, 2222929, 2229299, 2292299, 2299229, 2922229, 2992229, 2992999, 2999299, 2999999, 9222229, 9922229, 9929929, 9929999, 9999299, 9999929, 22229299, 22292929, 22299229, 22929299, 29229229, 29229929
Offset: 1
Links
- Jason Bard, Table of n, a(n) for n = 1..10000 (first 1000 terms from Vincenzo Librandi)
Programs
-
Magma
[p: p in PrimesUpTo(29229929) | Set(Intseq(p)) subset [2, 9]]; // Vincenzo Librandi, Jul 27 2012
-
Mathematica
Flatten[Table[Select[FromDigits/@Tuples[{2,9},n],PrimeQ],{n,8}]] (* Vincenzo Librandi, Jul 27 2012 *)