summaryrefslogtreecommitdiff
path: root/progs/a463.py
blob: 3cb65333da3d605f5770fdd62d5799eb8c830e85 (plain)
1
2
3
4
5
6
import sys
def next_smallest_palindrome(num):
    numstr = str(num)
    for i in range(num+1,sys.maxsize):
        if str(i) == str(i)[::-1]:
            return i