3 lines · 145 B · Text
RawDownload
pythag : Int -> List (Int, Int, Int)pythag n = [ (x, y, z) | z <- [1..n], y <- [1..z], x <- [1..y],                         x*x + y*y == z*z ]

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t