Minimum primes: Difference between revisions

(→‎{{header|ALGOL 68}}: Make the sieve sie more appropriate for the elements)
Line 144:
</pre>
=={{header|Factor}}==
<lang factor>USING: arraysmath math.order math.primes prettyprint sequences ;
 
{ 5 45 23 21 67 } { 43 22 78 46 38 } { 9 98 12 54 53 }
3array[ flip [max supremummax 1 - next-prime ] map3map .</lang>
{{out}}
<pre>
1,827

edits