diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2022-02-03 21:37:09 +0100 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2022-02-03 21:37:09 +0100 |
commit | cc5229695b1ca66267d25f99b8b90619aa573a43 (patch) | |
tree | 52a6ad5fe716d3c7ffc5c0e1782c60940f2afe4c | |
parent | 9ff679d025151184818542a155065da5dbcbc5a1 (diff) | |
download | projecteuler-trunk.tar.gz |
-rw-r--r-- | 003.ex | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,6 +4,6 @@ n = 600851475143 |> Enum.reduce_while(n, fn x, acc -> if acc == x, do: {:halt, x}, else: {:cont, acc / x} end) -|> trunc -|> IO.puts +|> trunc() +|> IO.puts() |