diff options
Diffstat (limited to 'progs/a463.py')
-rw-r--r-- | progs/a463.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a463.py b/progs/a463.py new file mode 100644 index 0000000..3cb6533 --- /dev/null +++ b/progs/a463.py @@ -0,0 +1,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
\ No newline at end of file |