OFFSET
1,4
COMMENTS
EXAMPLE
The first terms, alongside their binary representations and the corresponding concatenations, are:
n a(n) bin(a(n)) bin(A329875(n))
-- ---- --------- -----------------------
1 1 1 1
2 1 1 11
3 1 1 111
4 2 10 10111
5 4 100 10010111
6 3 11 1110010111
7 7 111 1111110010111
8 10 1010 10101111110010111
9 18 10010 1001010101111110010111
10 1 1 11001010101111110010111
PROG
(PARI) print1 (v=1); for (n=2, 69, s=(b=2)^#digits(v, b); for (k=1, oo, if (isprime(v+=s), print1 (", "k); break)))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Nov 23 2019
STATUS
approved