Skip to content

Commit 5b4453e

Browse files
triuyenvil02
andauthored
Update src/number_theory/euler_totient.rs
Co-authored-by: Piotr Idzik <[email protected]>
1 parent 4f80fef commit 5b4453e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/number_theory/euler_totient.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
pub fn euler_totient(n: u64) -> u64 {
2-
if n == 1 {
3-
return 1;
4-
}
5-
62
let mut result = n;
73
let mut num = n;
84
let mut p = 2;

0 commit comments

Comments
 (0)