OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
Prime 239 is in sequence because 2*3*9 = 45, 4*5 = 20, 2*0 = 0.
MAPLE
mdr:= proc(n) local L, r;
r:= n;
while r >= 10 do
r:= convert(convert(r, base, 10), `*`)
od;
r
end proc:
select(mdr=0, [seq(ithprime(i), i=1..1000)]); # Robert Israel, Feb 28 2021
MATHEMATICA
digRoot[n_] := Module[{k = n}, While[k > 9, k = Times @@ IntegerDigits[k]]; k]; Select[Range[1200], PrimeQ[#] && digRoot[#] == 0 &] (* T. D. Noe, Nov 23 2011 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jaroslav Krizek, Nov 13 2011
STATUS
approved