Increasing gaps between consecutive Niven numbers: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (→{{header|Perl 6}}: Minor changes to make threshold configurable with a parameter for ease of automated testing) |
Thundergnat (talk | contribs) m (→{{header|Perl 6}}: better idiom) |
||
Line 155: | Line 155: | ||
++$index; |
++$index; |
||
$last = count; |
$last = count; |
||
last if $index >= $threshold; |
|||
}</lang> |
}</lang> |
||
{{out}} |
{{out}} |