Pythagorean triples: Difference between revisions

m (→‎{{header|Wren}}: Changed to Wren S/H)
 
Line 1,259:
 
auto xs = triples(100);
writelnwritefln("Up\nUp to 100%d there are "%d triples, xs%d are primitive.count", " triplesN, "xs.count,
xs.filter!q{ a[0] }.count, " are primitive.");
}
}</syntaxhighlight>
 
{{out}}
<pre>
<pre>Up to 100 there are 17 triples, 7 are primitive.</pre>
</pre>
 
===Shorter Version===
121

edits