OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
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 *)
PROG
(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
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
N. J. A. Sloane and Vincenzo Librandi, Sep 04 2010
STATUS
approved