Light Mode
Dark Mode
how to make the code shorter?
golf=lambda x:next(x for x in range(x+1,9**6) if str(x)[::-1]==str(x) and all(x%c for c in range(2,x)))
Created: April 21, 2015, 9:26 p.m.
Updated: April 23, 2015, 12:53 p.m.
0
7
User avatar
Kriol