Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Mobius Function #1058

Merged
merged 11 commits into from
Jul 21, 2019
Prev Previous commit
Next Next commit
Add files via upload
  • Loading branch information
QuantumNovice authored Jul 20, 2019
commit b79bddb2335cf208ef8e02893331f699256e6731
3 changes: 1 addition & 2 deletions maths/mobius_function.py
Original file line number Diff line number Diff line change
@@ -108,8 +108,7 @@ def mobius(n:int) -> int:
return 1
elif len(factors)%2 != 0:
return -1
else:
return 0
return 0

if __name__ == '__main__':
import doctest