Pythagorean triples: Difference between revisions

Content added Content deleted
Line 111: Line 111:
4858 703</lang>
4858 703</lang>


pytr 10000 takes 4 seconds on this laptop, and time to complete grows with square of perimeter, so pytr 1e6 should take a something like 11 hours using this algorithm on this machine.
pytr 10000 takes 4 seconds on this laptop, and time to complete grows with square of perimeter, so pytr 1e6 should take something like 11 hours using this algorithm on this machine.


A slightly smarter approach:
A slightly smarter approach: