Special pythagorean triplet: Difference between revisions

m
no edit summary
(Added Wren)
mNo edit summary
Line 4:
 
<br><br>
 
 
=={{header|Julia}}==
<pre>
julia> [(a, b, c) for a in 1:1000, b in 1:1000, c in 1:1000 if a + b + c == 1000 && a^2 + b^2 == c^2]
2-element Vector{Tuple{Int64, Int64, Int64}}:
(375, 200, 425)
(200, 375, 425)
</pre>
 
 
=={{header|Ring}}==
4,105

edits