A171044 In the sequence of prime numbers, replace all the '8' digits with '3' and vice versa.
2, 8, 5, 7, 11, 18, 17, 19, 28, 29, 81, 87, 41, 48, 47, 58, 59, 61, 67, 71, 78, 79, 38, 39, 97, 101, 108, 107, 109, 118, 127, 181, 187, 189, 149, 151, 157, 168, 167, 178, 179, 131, 191, 198, 197, 199, 211, 228, 227, 229, 288, 289, 241, 251, 257, 268
Offset: 1
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
FromDigits[IntegerDigits[#]/.{8->p, 3->q}/.{p->3, q->8}]&/@Prime[Range[100]] (* Vincenzo Librandi, Mar 11 2013 *)
-
PARI
a(n)=my(v=[0,1,2,8,4,5,6,7,3,9]);subst(Pol(apply(k->v[k+1], digits(prime(n)))),'x,10) \\ Charles R Greathouse IV, Jul 31 2013