Largest five adjacent number: Difference between revisions

Content added Content deleted
(Add Factor)
Line 35: Line 35:
Largest 5 consecutive digits from 1000 random digits: 99987
Largest 5 consecutive digits from 1000 random digits: 99987
Smallest 5 consecutive digits from 1000 random digits: 00119
Smallest 5 consecutive digits from 1000 random digits: 00119
</pre>

=={{header|Factor}}==
{{works with|Factor|0.99 2021-06-02}}
<lang factor>USING: grouping io math.functions prettyprint random sequences ;

1000 10^ random unparse 5 <clumps> supremum print</lang>
{{out}}
<pre>
99987
</pre>
</pre>