OFFSET
1,1
COMMENTS
LINKS
David A. Corneth, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Consecutive Number Sequences
EXAMPLE
The first 5 primes are 2, 3, 5, 7, 11. The last 5 digits concatenated are 35711 so a(5) = 35711. - David A. Corneth, Sep 15 2019
MATHEMATICA
Table[FromDigits[Take[Flatten[IntegerDigits/@Prime[Range[n]]], -n]], {n, 20}] (* Harvey P. Dale, Sep 15 2019 *)
PROG
(PARI) a(n) = {my(p = prime(n), v = digits(p)); while(#v < n, p = precprime(p - 1); v = concat(digits(p), v)); fromdigits(vector(n, i, v[#v - n + i]))} \\ David A. Corneth, Sep 15 2019
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Reinhard Zumkeller, Feb 04 2004
EXTENSIONS
More terms from David A. Corneth, Sep 15 2019
STATUS
approved