A171039 In the sequence of prime numbers, replace all the '7' digits with '5' and vice versa.
2, 3, 7, 5, 11, 13, 15, 19, 23, 29, 31, 35, 41, 43, 45, 73, 79, 61, 65, 51, 53, 59, 83, 89, 95, 101, 103, 105, 109, 113, 125, 131, 135, 139, 149, 171, 175, 163, 165, 153, 159, 181, 191, 193, 195, 199, 211, 223, 225, 229, 233, 239, 241, 271, 275, 263
Offset: 1
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
pq[n_]:=Module[{idn=IntegerDigits[n]},FromDigits[idn/. {7->p,5->q}/. {p->5,q->7}]]; pq/@Prime[Range[60]] (* Harvey P. Dale, Apr 04 2011 *)
-
PARI
a(n)=my(v=[0,1,2,3,4,7,6,5,8,9]);subst(Pol(apply(k->v[k+1], digits(prime(n)))),'x,10) \\ Charles R Greathouse IV, Jul 26 2013