mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
Update Maths/BasicMaths.py
Add main method to 'Maths/BasicMaths' module
This commit is contained in:
parent
5f5ab48b8a
commit
54697599f4
@ -62,9 +62,13 @@ def eulerPhi(n):
|
||||
s *= (x - 1)/x
|
||||
return s
|
||||
|
||||
print(primeFactors(100))
|
||||
print(numberOfDivisors(100))
|
||||
print(sumOfDivisors(100))
|
||||
print(eulerPhi(100))
|
||||
def main():
|
||||
print(primeFactors(100))
|
||||
print(numberOfDivisors(100))
|
||||
print(sumOfDivisors(100))
|
||||
print(eulerPhi(100))
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user