Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
INIT-REF committed Jul 9, 2024
1 parent b84f43e commit 953d6bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 016.fut
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ def digitsum(n: u64) =
(n / 10, sum + n % 10)
in sum

def euler016 = pow2 1000 |> map digitsum |> reduce (+) 0
def euler016 = pow2 1000 |> map digitsum |> u64.sum

def main = euler016

0 comments on commit 953d6bd

Please sign in to comment.