Special pythagorean triplet: Difference between revisions

m
m (→‎smarter (166 iterations): <del>/exit</del>)
Line 155:
=={{header|Phix}}==
=== brute force (83000 iterations) ===
Not that this is in any way slow (0.1s, or 0s with the displays removed), or deliberately avoids using sensible loop limits, you understand.
<!--<lang Phix>(phixonline)-->
<span style="color: #008080;">with</span> <span style="color: #008080;">javascript_semantics</span>
Line 176:
83000 iterations
</pre>
 
=== smarter (166 iterations) ===
It would of course be 100 iterations if we quit once found.
7,806

edits