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