Commit a3b116d
Add euler totient function (#882)
* Add Euler's totient function implementation - Implements φ(n) using prime factorization method
- Includes comprehensive tests for small numbers, primes, prime powers, and larger values
- All tests pass and follows project naming conventions
* add to DIRECTORY.md
* Add parameterized tests for Euler totient with 100% coverage
* Add parameterized tests for Euler totient with 100% coverage
* Add parameterized tests for Euler totient with 100% coverage
* Add parameterized tests for Euler totient with 100% coverage / after echo
* code syntaxe fixing
* run cargo clippy and cargo fmt
* re-test and make sure branch is up to date
* Update src/number_theory/euler_totient.rs
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
* Update src/number_theory/euler_totient.rs
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
* add all remainning cases
* add suggestion and add other cases
* Update euler_totient.rs
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
* before merge
* re-test
---------
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>1 parent ba3f671 commit a3b116d
3 files changed
+77
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| 6 | + | |
5 | 7 | | |
0 commit comments