OFFSET
1,1
COMMENTS
The first four terms of the sequence are primes - see A066776.
a(169) has 1009 digits. - Michael S. Branicky, Dec 30 2025
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..168
MATHEMATICA
a[n_] := (k = Prime[ Floor[n^(3/2)]] + 6; l = Sum[ Prime[i], {i, 1, n - 1} ]; b = ""; Do[ b = StringJoin[b, ToString[ Prime[i]]], {i, 1, k} ]; Return[ ToExpression[ StringTake[ StringDrop[b, l], Prime[n]]]]); Table[ a[n], {n, 1, 13} ]
PROG
(Python)
from sympy import nextprime
from itertools import islice
def A043347(): # generator of terms
p, q, s = 2, 2, ""
while True:
while len(s) < p:
s += str(q)
q = nextprime(q)
yield int(s[:p])
p, s = nextprime(p), s[p:]
print(list(islice(A043347(), 13))) # Michael S. Branicky, Dec 30 2025
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Joseph L. Pe, Jan 12 2002
EXTENSIONS
More terms from Robert G. Wilson v, Jan 16 2002
a(12) onward from Michael S. Branicky, Dec 30 2025
STATUS
approved
