login
A059932
a(n) is formed by concatenating the next prime(n) primes.
11
23, 5711, 1317192329, 31374143475359, 6167717379838997101103107, 109113127131137139149151157163167173179, 181191193197199211223227229233239241251257263269271, 277281283293307311313317331337347349353359367373379383389, 397401409419421431433439443449457461463467479487491499503509521523541
OFFSET
1,1
COMMENTS
Original name: Prime groupings.
The n-th term of the sequence is determined by grouping the prime numbers according to the natural order of primes themselves, e.g. the first prime is 2 so group the first two primes 2 and 3. Second prime is 3 so group the next 3 primes 5, 7 and 11, etc.
a(47) has 1055 digits. - Michael S. Branicky, Dec 30 2025
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..46
FORMULA
a(n) = A000040(A007504(n-1)+1)|..|A000040(A007504(n)) where | denotes concatenation. - Michael S. Branicky, Dec 30 2025
PROG
(Python)
from sympy import nextprime
from itertools import islice
def agen(): # generator of terms
p, q, s = 2, 2, []
while True:
while len(s) < p:
s += [str(q)]
q = nextprime(q)
yield int("".join(s))
p, s = nextprime(p), []
print(list(islice(agen(), 9))) # Michael S. Branicky, Dec 30 2025
(Python)
from sympy import prime, primerange
def a(n):
p = prime(n)
s = sum(primerange(1, p))
return int("".join(map(str, primerange(prime(s+1), prime(s+p)+1))))
print([a(n) for n in range(1, 10)]) # Michael S. Branicky, Dec 30 2025
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Jason Earls, Mar 01 2001
EXTENSIONS
Offset and name changed by and a(8) onward from Michael S. Branicky, Dec 30 2025
STATUS
approved