Ormiston triples: Difference between revisions
Content added Content deleted
(Created a new draft task and added a Wren example) |
m (→{{header|Wren}}: Minor changes to output.) |
||
Line 61: | Line 61: | ||
} |
} |
||
counts.add(count) |
counts.add(count) |
||
System.print(" |
System.print("Smallest members of first 25 Ormiston triples:") |
||
Fmt.tprint("$,10d ", orm25, 5) |
Fmt.tprint("$,10d ", orm25, 5) |
||
System.print() |
System.print() |
||
j = 1e9 |
j = 1e9 |
||
for (i in 0...counts.count) { |
for (i in 0...counts.count) { |
||
Fmt.print("$,d Ormiston |
Fmt.print("$,d Ormiston triples before $,d", counts[i], j) |
||
j = j * 10 |
j = j * 10 |
||
System.print() |
System.print() |
||
Line 73: | Line 73: | ||
{{out}} |
{{out}} |
||
<pre> |
<pre> |
||
Smallest members of first 25 Ormiston triples: |
|||
11,117,123 12,980,783 14,964,017 32,638,213 32,964,341 |
11,117,123 12,980,783 14,964,017 32,638,213 32,964,341 |
||
33,539,783 35,868,013 44,058,013 46,103,237 48,015,013 |
33,539,783 35,868,013 44,058,013 46,103,237 48,015,013 |
||
Line 80: | Line 80: | ||
82,324,237 82,523,017 83,279,783 86,050,781 92,514,341 |
82,324,237 82,523,017 83,279,783 86,050,781 92,514,341 |
||
368 Ormiston |
368 Ormiston triples before 1,000,000,000 |
||
4,925 Ormiston |
4,925 Ormiston triples before 10,000,000,000 |
||
</pre> |
</pre> |