OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Multiplicative Persistence
EXAMPLE
8867 -> [ 2688 ][ 768 ][ 336 ][ 54 ][ 20 ][ 0 ] -> one digit in six steps.
MAPLE
filter:= proc(n) local L, i;
L:= convert(convert(n, base, 10), `*`); if L < 10 then return false fi;
for i from 2 to 5 do
L:= convert(convert(L, base, 10), `*`); if L < 10 then return false fi
od;
L:= convert(convert(L, base, 10), `*`); evalb(L < 10)
end proc:
count:= 0: Res:= NULL;
p:= 11:
while count < 100 do
p:= nextprime(p);
if filter(p) then count:= count+1; Res:= Res, p fi
od:
Res; # Robert Israel, Jun 06 2018
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Sep 15 1998
EXTENSIONS
Offset corrected by Robert Israel, Jun 06 2018
STATUS
approved