We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 320f8f2 commit 9ab8052Copy full SHA for 9ab8052
project_euler/problem_095/sol1.py
@@ -2,7 +2,7 @@
2
Problem 95
3
Url: https://projecteuler.net/problem=95
4
"""
5
-def find_smallest_member(n: int) -> int:
+def solution(n: int = 10**6) -> int:
6
7
Returns the smallest member of the longest amicable chain with no element exceeding one million
8
>> 14316
@@ -35,4 +35,7 @@ def find_smallest_member(n: int) -> int:
35
36
37
if __name__ == "__main__":
38
- print(f"Solution : {find_smallest_member(10**6)}")
+ import doctest
39
+
40
+ doctest.testmod()
41
+ print(f"{solution() = }")
0 commit comments