@@ -0,0 +1,586 @@
+#!/usr/bin/env python%0A#-*-coding:utf-8-*-%0A%0A'''%0A%0A'''%0A%0Aimport timeit%0A%0A%0Adef loop(n, m):%0A    return len(%5Bi for i in range(10, n) if not is_palindromic(i, m)%5D)%0A%0A%0Adef is_palindromic(n, m):%0A    if m == 0:%0A        return False%0A    else:%0A        s = str(n+int(str(n)%5B::-1%5D))%0A        diff = %5Bi for i in range(int(len(s)/2)) if s%5Bi%5D != s%5B-i-1%5D%5D%0A        if len(diff) %3E 0:%0A            return is_palindromic(int(s), m-1)%0A        else:%0A            return True%0A%0A%0Aif __name__ == '__main__':%0A    print loop(10000, 50)%0A    print timeit.Timer('problem_055.loop(10000, 50)', 'import problem_055').timeit(1)%0A

add problem 55