Coprime triplets: Difference between revisions
Content added Content deleted
(Added Wren) |
(→{{header|Wren}}: More general.) |
||
Line 118: | Line 118: | ||
cpt.add(m) |
cpt.add(m) |
||
} |
} |
||
System.print("Coprime triplets under |
System.print("Coprime triplets under %(limit):") |
||
for (chunk in Lst.chunks(cpt, 10)) Fmt.print("$2d", chunk) |
for (chunk in Lst.chunks(cpt, 10)) Fmt.print("$2d", chunk) |
||
System.print("\nFound %(cpt.count) such numbers.")</lang> |
System.print("\nFound %(cpt.count) such numbers.")</lang> |