#- # Author: Brian Tiffin # Dedicated to the public domain # # Date: April 2017 # Modified: 2017-04-09/02:03-0400 btiffin # # Tectonics: elixirc tightloop-elixir.ex #+ # Sum of values from 0 to 16777216 Code.compiler_options(ignore_module_conflict: true) defmodule Tightloop do def sum() do limit = :math.pow(2, 24) |> round IO.puts Enum.sum(0..limit) end end Tightloop.sum()