Jump to content

Special pythagorean triplet: Difference between revisions

m
→‎{{header|Phix}}: or -> and not
m (→‎{{header|Phix}}: or -> and not)
Line 541:
=={{header|Phix}}==
=== brute force (83000 iterations) ===
Not that this is in any way slow (0.1s, or 0s with the displays removed), orand not that it 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 564:
 
=== smarter (166 iterations) ===
It would of course be 100 iterations if we quit once found (whereas the above would be 69775).
<!--<lang Phix>(phixonline)-->
<span style="color: #008080;">with</span> <span style="color: #008080;">javascript_semantics</span>
7,820

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.