A171057 In the sequence of prime numbers, replace all the '9' digits with '8' and vice versa.
2, 3, 5, 7, 11, 13, 17, 18, 23, 28, 31, 37, 41, 43, 47, 53, 58, 61, 67, 71, 73, 78, 93, 98, 87, 101, 103, 107, 108, 113, 127, 131, 137, 138, 148, 151, 157, 163, 167, 173, 178, 191, 181, 183, 187, 188, 211, 223, 227, 228, 233, 238, 241, 251, 257, 263
Offset: 1
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
FromDigits[IntegerDigits[#] /. {9 -> p, 8 -> q} /. {p -> 8, q -> 9}] & /@ Prime[Range[60]] (* Vincenzo Librandi, Mar 01 2013, after Harvey P. Dale in similar sequences *)
-
PARI
a(n)=my(v=[0,1,2,3,4,5,6,7,9,8]);apply(k->v[k+1],digits(prime(n))) \\ Charles R Greathouse IV, Jul 16 2013