Skip to content

Commit 15e9bde

Browse files
srishtik2310poyea
andauthored
Update project_euler/problem_686/sol1.py
Co-authored-by: John Law <[email protected]>
1 parent cb57da9 commit 15e9bde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project_euler/problem_686/sol1.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def solution(number: int = 678910) -> int:
6161
lowerbound = log(1.23), upperbound = log(1.24)
6262
because we need to find the powers that yield 123 as starting digits.
6363
64-
log(1.23) = 0.08990511143939792, log(1,24) = 0.09342168516223506.
64+
log(1.23) = 0.08990511143939792, log(1.24) = 0.09342168516223506.
6565
We use 1.23 and not 12.3 or 123, because log(1.23) yields only decimal value
6666
which is less than 1.
6767
log(12.3) will be same decimal vale but 1 added to it

0 commit comments

Comments
 (0)