Fix typo
This commit is contained in:
parent
e856090047
commit
27db31821a
@ -9,7 +9,7 @@ Solution for problem 55 of Project Euler
|
|||||||
https://projecteuler.net/problem=55
|
https://projecteuler.net/problem=55
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from utils import timeit, is_palidrome
|
from utils import timeit, is_palindrome
|
||||||
|
|
||||||
|
|
||||||
@timeit("Problem 55")
|
@timeit("Problem 55")
|
||||||
@ -52,7 +52,7 @@ def compute():
|
|||||||
is_lychrel = True
|
is_lychrel = True
|
||||||
for it in range(50):
|
for it in range(50):
|
||||||
num += int(str(num)[::-1])
|
num += int(str(num)[::-1])
|
||||||
if is_palidrome(num):
|
if is_palindrome(num):
|
||||||
is_lychrel = False
|
is_lychrel = False
|
||||||
break
|
break
|
||||||
if is_lychrel:
|
if is_lychrel:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user