Pythagorean triples: Difference between revisions
→{{header|PowerShell}}
No edit summary |
|||
Line 2,499:
$triples = (triples 100)
$coprime = $
where{((gcd $_.a $_.b) -eq 1) -and ((gcd $_.a $_.c) -eq 1) -and ((gcd $_.b $_.c) -eq 1)}
|
No edit summary |
|||
Line 2,499:
$triples = (triples 100)
$coprime = $
where{((gcd $_.a $_.b) -eq 1) -and ((gcd $_.a $_.c) -eq 1) -and ((gcd $_.b $_.c) -eq 1)}
|
edits