Jump to content

Addition chains: Difference between revisions

m
Line 1,256:
for (2 .. @a.end) -> $i {
my $ok = False;
ILOOPINNERLOOP: for ($i-1 … 0) -> $j {
if (@a[$i-1]+@a[$j] == @a[$i]) {
$ok = True;
last ILOOPINNERLOOP;
}
}
351

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.