OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
FORMULA
MATHEMATICA
FromDigits[IntegerDigits[#]/.{1->p, 0->q}/.{p->0, q->1}]&/@Prime[Range[100]] (* Vincenzo Librandi, Jul 06 2012 *)
PROG
(PARI) a(n)=my(v=[1, 0, 2, 3, 4, 5, 6, 7, 8, 9]); 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