File tree 4 files changed +3
-3
lines changed
project_euler/problem_002
4 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 86
86
* [ Baconian Cipher] ( ciphers/baconian_cipher.py )
87
87
* [ Base16] ( ciphers/base16.py )
88
88
* [ Base32] ( ciphers/base32.py )
89
- * [ Base64] ( ciphers/base64 .py )
89
+ * [ Base64 Cipher ] ( ciphers/base64_cipher .py )
90
90
* [ Base85] ( ciphers/base85.py )
91
91
* [ Beaufort Cipher] ( ciphers/beaufort_cipher.py )
92
92
* [ Bifid] ( ciphers/bifid.py )
1331
1331
* [ Title] ( strings/title.py )
1332
1332
* [ Top K Frequent Words] ( strings/top_k_frequent_words.py )
1333
1333
* [ Upper] ( strings/upper.py )
1334
- * [ Wave] ( strings/wave .py )
1334
+ * [ Wave String ] ( strings/wave_string .py )
1335
1335
* [ Wildcard Pattern Matching] ( strings/wildcard_pattern_matching.py )
1336
1336
* [ Word Occurrence] ( strings/word_occurrence.py )
1337
1337
* [ Word Patterns] ( strings/word_patterns.py )
File renamed without changes.
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def solution(n: int = 4000000) -> int:
61
61
if n <= 0 :
62
62
raise ValueError ("Parameter n must be greater than or equal to one." )
63
63
getcontext ().prec = 100
64
- phi = (Decimal (5 ) ** Decimal (0.5 ) + 1 ) / Decimal (2 )
64
+ phi = (Decimal (5 ) ** Decimal (" 0.5" ) + 1 ) / Decimal (2 )
65
65
66
66
index = (math .floor (math .log (n * (phi + 2 ), phi ) - 1 ) // 3 ) * 3 + 2
67
67
num = Decimal (round (phi ** Decimal (index + 1 ))) / (phi + 2 )
File renamed without changes.
You can’t perform that action at this time.
0 commit comments