Anonymous user
Pythagorean triples: Difference between revisions
m
→{{header|Ada}}
m (→{{header|Ada}}) |
m (→{{header|Ada}}) |
||
Line 15:
=={{header|Ada}}==
Translation of efficient method from C, see [[wp:Pythagorean_triple#Parent.2Fchild_relationships|the
<lang Ada>with Ada.Text_IO;
Line 41:
begin
for I in 1 ..
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
Up to 10 ** 9 : 1294080089 Triples, 70230484 Primitives</pre>
=={{header|C}}==
|