Ascending primes: Difference between revisions
Content deleted Content added
m sort is not needed with use of current Combinatorics version |
|||
Line 136: | Line 136: | ||
foreach(p -> print(rpad(p[2], 10), p[1] % 10 == 0 ? "\n" : ""), enumerate(ascendingprimes())) |
foreach(p -> print(rpad(p[2], 10), p[1] % 10 == 0 ? "\n" : ""), enumerate(ascendingprimes())) |
||
@time ascendingprimes() |
|||
</lang>{{out}} |
</lang>{{out}} |
||
<pre> |
<pre> |
||
Line 148: | Line 151: | ||
34679 123457 123479 124567 124679 125789 134789 145679 234589 235679 |
34679 123457 123479 124567 124679 125789 134789 145679 234589 235679 |
||
235789 245789 345679 345689 1234789 1235789 1245689 1456789 12356789 23456789 |
235789 245789 345679 345689 1234789 1235789 1245689 1456789 12356789 23456789 |
||
0.000150 seconds (2.19 k allocations: 159.078 KiB |
|||
</pre> |
</pre> |
||