OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..8482
EXAMPLE
8243 is a concatenation of 2^3 and 3^5. 10242187 is a term as a concatenation of 1024 (=2^10) and 2187(=3^7).
PROG
(Python)
from sympy import isprime
from itertools import count, takewhile
def auptod(digits):
M = 10**digits
pows2 = list(takewhile(lambda x: x < M , (2**a for a in count(0))))
pows3 = list(takewhile(lambda x: x < M , (3**b for b in count(0))))
strs2, strs3 = list(map(str, pows2)), list(map(str, pows3))
concat = (int(s2+s3) for s2 in strs2 for s3 in strs3)
return sorted(set(t for t in concat if t < M and isprime(t)))
print(auptod(6)) # Michael S. Branicky, Aug 17 2022
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Mar 05 2002
EXTENSIONS
Corrected and extended by Larry Reeves (larryr(AT)acm.org), Jun 25 2002
a(43) and beyond from Michael S. Branicky, Aug 17 2022
STATUS
approved