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
|
||||
"""
|
||||
|
||||
from utils import timeit, is_palidrome
|
||||
from utils import timeit, is_palindrome
|
||||
|
||||
|
||||
@timeit("Problem 55")
|
||||
@ -52,7 +52,7 @@ def compute():
|
||||
is_lychrel = True
|
||||
for it in range(50):
|
||||
num += int(str(num)[::-1])
|
||||
if is_palidrome(num):
|
||||
if is_palindrome(num):
|
||||
is_lychrel = False
|
||||
break
|
||||
if is_lychrel:
|
||||
|
Loading…
x
Reference in New Issue
Block a user