Ejemplo n.º 1
0
def solve():
    palin = 0

    for i in range(start, end):
        for j in range(i, end):
            a = i * j
            if a >= palin and palindrome(str(a)):
                palin = a

    return palin
Ejemplo n.º 2
0
def solve_3():
    palin = 0

    for i in range(end, start - 1, -1):
        for j in range(end, i - 1, -1):
            a = i * j

            if a < palin:
                break

            if palindrome(str(a)):
                palin = a

    return palin
Ejemplo n.º 3
0
def solve_4():
    return max(filter(lambda x: palindrome(str(x)), (a * b for a in range(start, end + 1) for b in range(a, end + 1))))