Increasing gaps between consecutive Niven numbers: Difference between revisions

Content added Content deleted
m (→‎{{header|Perl 6}}: Minor changes to make threshold configurable with a parameter for ease of automated testing)
m (→‎{{header|Perl 6}}: better idiom)
Line 155: Line 155:
++$index;
++$index;
$last = count;
$last = count;
exit if $index >= $threshold;
last if $index >= $threshold;
}</lang>
}</lang>
{{out}}
{{out}}