
22 Dec
2005
22 Dec
'05
12:15 p.m.
You might also like to try the slightly more efficient... pyth n = [(a,b,c) | a <- [1..n], b <- [a..n], c <- [a+1..n], a*a + b*b == c*c ] Greg Buchholz