# Copyright by Shlomi Fish, 2018 under the Expat licence
# https://opensource.org/licenses/mit-license.php
my $max = 0;
for 2 .. 99 -> $base
{
my $power-result = $base;
for 1 .. 99
{
my $digits-sum = [+] "$power-result".comb();
if $digits-sum > $max
{
$max = $digits-sum;
}
$power-result *= $base;
}
}
say $max;
See Also
The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society.
All rights reserved.