I really wanted to look at top solutions to see what I can do better next time, but it appears solutions aren't published for code golf. I got it down to 99 characters which is good for 173rd place right now, so I know there are at least 172 of you that can help me out. How can I do better?
I feel like there must be a way to get rid of one of the n+=1 parts, but can't find it.
def golf(n):
n+=1
while n-int(str(n)[::-1])or any(y for y in range(2,n)if not n%y):n+=1
return n
Created at: Feb. 20, 2015, 2:57 a.m.; Updated at: Feb. 20, 2015, 11:20 a.m.