1
0

rename statics/euler and sync b93 code with main repo

This commit is contained in:
2017-11-20 17:38:54 +01:00
parent 0efeb3afeb
commit 69e3f51730
409 changed files with 745 additions and 509 deletions

View File

@@ -0,0 +1,11 @@
We start with a value of `1`.
Then we multiply one after another the numbers from `1` to `20` to our value (We call these `multiplicand` in the loop).
After each multiplications we search go through the numbers from `2` to `value` and search for a number `divisor` where
- `value % divisor == 0`
- `(value / divisor) % {0, multiplicand} == 0`
Then (after we found such a number) we can reduce the value with it (`value /= divisor`).
The reduction steps guarantees us that we find the **smallest** number and it prevents our *Int64* numbers from overflowing