Adopted new convention from template
This commit is contained in:
parent
32a6034334
commit
f7f87e03a3
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python
|
||||||
"""
|
"""
|
||||||
Created on 18 Mar 2017
|
Created on 18 Mar 2017
|
||||||
|
|
||||||
@ -19,6 +19,7 @@ def compute():
|
|||||||
|
|
||||||
What is the largest prime factor of the number 600851475143?
|
What is the largest prime factor of the number 600851475143?
|
||||||
"""
|
"""
|
||||||
|
|
||||||
ans = 600851475143
|
ans = 600851475143
|
||||||
factor = 2
|
factor = 2
|
||||||
while factor * factor < ans:
|
while factor * factor < ans:
|
||||||
@ -30,5 +31,4 @@ def compute():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
print(f"Result for problem 3 is {compute()}")
|
||||||
print(f"Result for problem 3: {compute()}")
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user