Last active
August 29, 2015 14:04
-
-
Save sansarun/9d8384d50252269740fd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def golf(n): | |
while True: | |
n+=1 | |
if not p(n)and str(n)[::-1]==str(n):return n | |
def p(n): | |
for i in range(2,n): | |
if n%i==0:return True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment