login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A091762 Last n digits of concatenation of first n primes. 12
2, 23, 235, 2357, 35711, 571113, 7111317, 11131719, 113171923, 1317192329, 31719232931, 171923293137, 7192329313741, 19232931374143, 923293137414347, 2329313741434753, 32931374143475359, 293137414347535961, 9313741434753596167, 31374143475359616771, 137414347535961677173, 3741434753596167717379 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

a(n) = A019518(n) mod 10^n; a(n) mod 10^A055642(A000040(n)) = A000040(n); for the primes in this sequence see A091763.

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

Sequence in context: A118385 A098739 A287353 * A309706 A240959 A054261

Adjacent sequences:  A091759 A091760 A091761 * A091763 A091764 A091765

KEYWORD

nonn,base,easy

AUTHOR

Reinhard Zumkeller, Feb 04 2004

EXTENSIONS

More terms from David A. Corneth, Sep 15 2019

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified February 16 21:23 EST 2020. Contains 331975 sequences. (Running on oeis4.)