Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • Repeated modulo operations are useful when it helps to keep numbers small. Summing numbers won't create large numbers unless you sum A LOT of numbers, so in this case it wouldn't help. Especially since not doing so allows the use of the built-in sum function, which will run much faster than repeated application of a user-defined function Commented Sep 11, 2019 at 3:07