OFFSET
1,1
COMMENTS
No term N can have a "9" digit. [Proof: The sum of the digits of N is not a multiple of 3, but the numerator would be a multiple of 9, and so the number would be a multiple of 9, so not a prime.]
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
167 (prime) is a term because 1*6*7/(1+6+7)=42/14=3 (prime).
MATHEMATICA
pQ[n_] := Block[{idp = DeleteCases[IntegerDigits[n], 0]}, PrimeQ[Times @@ idp/Total@ idp]]; Cases[Prime@ Range@ PrimePi[10^5], _?pQ]
Select[Prime[Range[2500]], PrimeQ[Times@@(IntegerDigits[#]/.(0->1))/Total[ IntegerDigits[ #]]]&] (* Harvey P. Dale, Sep 24 2024 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Mikk Heidemaa, May 24 2024
STATUS
approved