# Hackerrank optimizing euler problem #1

**URL:** <https://forum.elixirforum.com/t/hackerrank-optimizing-euler-problem-1/22367>\
**Category:** Coding Challenges\
**Tags:** learning-elixir\
**Created:** [May 12, 2019, 4:37pm UTC](https://forum.elixirforum.com/t/hackerrank-optimizing-euler-problem-1/22367 "2019-05-12T16:37:14Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![AlchemistCamp](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/alchemistcamp/32/8823_2.png) [@AlchemistCamp](https://forum.elixirforum.com/u/AlchemistCamp)\
**Post date:** [May 12, 2019, 6:38pm UTC](https://forum.elixirforum.com/t/hackerrank-optimizing-euler-problem-1/22367/5 "2019-05-12T18:38:17Z")

</div>

So I see! I was too quick to write that after seeing the `Enum.each` in `solve`.

Is the current code still not passing the last test?

Edit: My carelessness was the root cause, but maybe renaming `dividedSum` to something like `sum_of_multiples(n, multiple)` would make it clearer, also.

---

_[View the full topic](https://forum.elixirforum.com/t/hackerrank-optimizing-euler-problem-1/22367)._
