A171046 In the sequence of prime numbers, replace all the '8' digits with '5' and vice versa.
2, 3, 8, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 83, 89, 61, 67, 71, 73, 79, 53, 59, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 181, 187, 163, 167, 173, 179, 151, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 281, 287, 263
Offset: 1
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
FromDigits[IntegerDigits[#]/.{5->Q,8->P}/.{Q->8,P->5}]&/@ Prime[ Range[ 60]] (* Harvey P. Dale, Nov 12 2011 *)
-
PARI
a(n)=my(v=[0,1,2,3,4,8,6,7,5,9]);subst(Pol(apply(k->v[k+1], digits(prime(n)))),'x,10) \\ Charles R Greathouse IV, Jul 31 2013