login
A171041
In the sequence of prime numbers, replace all the '8' digits with '0' and vice versa.
3
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 3, 9, 97, 181, 183, 187, 189, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 101, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269
OFFSET
1,1
LINKS
MATHEMATICA
FromDigits[IntegerDigits[#]/.{8->p, 0->q}/.{p->0, q->8}]&/@Prime[Range[100]] (* Vincenzo Librandi, Mar 11 2013 *)
PROG
(PARI) a(n)=my(v=[8, 1, 2, 3, 4, 5, 6, 7, 0, 9]); subst(Pol(apply(k->v[k+1], digits(prime(n)))), 'x, 10) \\ Charles R Greathouse IV, Jul 26 2013
CROSSREFS
Sequence in context: A005180 A118848 A316903 * A094742 A110923 A137589
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved