Skip to content

Commit 6089766

Browse files
author
Srishtik2310
committed
Added ref link to optimization logic
1 parent 2459cfd commit 6089766

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

project_euler/problem_686/sol1.py

+3
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ def solution(number: int = 678910) -> int:
114114
we will increment by 93.
115115
3) if log_difference() < lowerbound, we increment by 196.
116116
117+
Ref link to the above logic:
118+
https://math.stackexchange.com/questions/4093970/powers-of-2-starting-with-123-does-a-pattern-exist
119+
117120
>>> solution(1000)
118121
284168
119122

0 commit comments

Comments
 (0)