First commit

This commit is contained in:
2026-01-11 09:19:22 +01:00
commit 50f7b1159e
108 changed files with 11791 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env python3
from Cryptotools.Utils.utils import gcd
# https://oeis.org/A000010
def phi(n):
"""
This function count all phi(n)
Args:
n (integer): it's the phi(n) value
Returns:
Return the phi(n)
"""
y = 1
for i in range(2, n):
if gcd(n, i) == 1:
y += 1
return y