OFFSET
1,1
EXAMPLE
MATHEMATICA
d[0] = d[1] = 0; d[n_] := n * Plus @@ ((Last[#]/First[#]) & /@ FactorInteger[n]); Select[Sort[Flatten[Outer[Times, Range[1, 9], (10^Range[43] - 1)/9]]], PrimeQ[d[#]] &] (* Amiram Eldar, May 09 2022 *)
PROG
(Magma) f:=func<n |n le 1 select 0 else n*(&+[Factorisation(n)[i][2] / Factorisation(n)[i][1]: i in [1..#Factorisation(n)]])>; [n:n in [(k - 9*Floor((k-1)/9))*(10^Floor((k+8)/9) - 1) div 9:k in [1..400]]| IsPrime(Floor(f(n))) ];
(PARI) ad(n) = vecsum([n/f[1]*f[2]|f<-factor(n+!n)~]); \\ A003415
isok(m) = isprime(ad(m)) && (#Set(digits(m)) == 1); \\ Michel Marcus, May 09 2022
(Python)
from itertools import count, islice
from sympy import isprime, factorint
def A353704_gen(): # generator of terms
return filter(lambda n:isprime(sum(n*e//p for p, e in factorint(n).items())), (d*(10**l-1)//9 for l in count(1) for d in (1, 2, 3, 5, 6, 7)))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Marius A. Burtea, May 08 2022
STATUS
approved