Pythagorean triples: Difference between revisions

m
Line 111:
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.
 
A slightly smarter approach:
6,962

edits