OFFSET
1,1
COMMENTS
Motivation for this sequence stems from the coincidence that (2^41)*(3^43) and (3^43)*(5^47) give prime counts for their digits.
EXAMPLE
(18329^2)*(18341^3) = 2072748335390985614861 has digit counts [2,2,2,3,2,2,2,2,3,2], all primes, and replacing the pair (18329,18341) with a smaller pair fails this criterion. In particular, (3733^2)*(3739^3) = 728420861672094091 has digit counts [3,2,3,0,2,0,2,2,2,2], not all prime.
MATHEMATICA
Table[p=2; While[!And@@PrimeQ[DigitCount[(p^Prime@n)*(NextPrime@p^Prime[n+1])]], p=NextPrime@p]; p, {n, 6}] (* Giorgos Kalogeropoulos, Aug 18 2021 *)
PROG
(Python)
from sympy import isprime, nextprime, prime
from sympy.ntheory import count_digits
def a(n):
pn = prime(n); qn = nextprime(pn)
p, q = 2, 3; c = count_digits(p**pn*q**qn)
while not all(isprime(c[i]) for i in range(10)):
p, q = q, nextprime(q); c = count_digits(p**pn*q**qn)
return p
print([a(n) for n in range(1, 7)]) # Michael S. Branicky, Aug 20 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
James G. Merickel, Sep 25 2012
EXTENSIONS
Name clarified by Tanya Khovanova, Aug 17 2021
a(23)-a(29) from Michael S. Branicky, Aug 25 2021
Name edited by Michel Marcus and Michael S. Branicky, Aug 25 2021
STATUS
approved