Brilliant numbers: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Minor tidy) |
|||
Line 2,193: | Line 2,193: | ||
{{libheader|Wren-seq}} |
{{libheader|Wren-seq}} |
||
{{libheader|Wren-fmt}} |
{{libheader|Wren-fmt}} |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">import "./math" for Int |
||
import "./seq" for Lst |
|||
import "./fmt" for Fmt |
import "./fmt" for Fmt |
||
Line 2,230: | Line 2,229: | ||
brilliant.sort() |
brilliant.sort() |
||
brilliant = brilliant[0..99] |
brilliant = brilliant[0..99] |
||
Fmt.tprint("$4d", brilliant, 10) |
|||
for (chunk in Lst.chunks(brilliant, 10)) Fmt.print("$4d", chunk) |
|||
System.print() |
System.print() |
||
for (k in 1..12) { |
for (k in 1..12) { |
||
Line 2,267: | Line 2,266: | ||
First >= 1,000,000,000,000 is 2,409,600,866th in the series: 1,000,006,000,009 |
First >= 1,000,000,000,000 is 2,409,600,866th in the series: 1,000,006,000,009 |
||
</pre> |
</pre> |
||
=={{header|XPL0}}== |
=={{header|XPL0}}== |
||
<syntaxhighlight lang="xpl0"> |
<syntaxhighlight lang="xpl0"> |