• how to make the code shorter?

Question related to mission Prime Palindrome Golf

 
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)))
7