Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
|
|
@ -1 +0,0 @@
|
|||
pyth = (n) -> flatten (flatten ([x, y, z] for z in [y..n] when x*x + y*y is z*z for y in [x..n]) for x in [1..n])
|
||||
|
|
@ -6,5 +6,7 @@ pyth = (n) ->
|
|||
for z in [y..n] when x*x + y*y is z*z
|
||||
[x, y, z]
|
||||
))
|
||||
# pyth can also be written more concisely as
|
||||
# pyth = (n) -> flatten (flatten ([x, y, z] for z in [y..n] when x*x + y*y is z*z for y in [x..n]) for x in [1..n])
|
||||
|
||||
console.dir pyth 20
|
||||
Loading…
Add table
Add a link
Reference in a new issue