OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
FromDigits[IntegerDigits[#]/.{5->Q, 8->P}/.{Q->8, P->5}]&/@ Prime[ Range[ 60]] (* Harvey P. Dale, Nov 12 2011 *)
PROG
(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
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
N. J. A. Sloane and Vincenzo Librandi, Sep 04 2010
STATUS
approved