Merge pull request #455 from amitkp57/master

Update Maths/BasicMaths.py
This commit is contained in:
Harshil 2018-10-13 21:42:55 +02:00 committed by GitHub
commit 5d81474d00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,9 +62,13 @@ def eulerPhi(n):
s *= (x - 1)/x s *= (x - 1)/x
return s return s
def main():
print(primeFactors(100)) print(primeFactors(100))
print(numberOfDivisors(100)) print(numberOfDivisors(100))
print(sumOfDivisors(100)) print(sumOfDivisors(100))
print(eulerPhi(100)) print(eulerPhi(100))
if __name__ == '__main__':
main()