Pythagorean triples: Difference between revisions

m
Line 15:
=={{header|Ada}}==
 
Translation of efficient method from C, see [[wp:Pythagorean_triple#Parent.2Fchild_relationships|the same WP article]]. CompiledCompiles on gnat/gcc.
 
<lang Ada>with Ada.Text_IO;
Line 41:
 
begin
for I in 1 .. 89 loop
T_Cnt := 0;
P_Cnt := 0;
Line 60:
Up to 10 ** 6 : 808950 Triples, 70229 Primitives
Up to 10 ** 7 : 9706567 Triples, 702309 Primitives
Up to 10 ** 8 : 113236940 Triples, 7023027 Primitives</pre>
Up to 10 ** 9 : 1294080089 Triples, 70230484 Primitives</pre>
 
=={{header|C}}==
Anonymous user