Skip to content

Instantly share code, notes, and snippets.

@rainshen49
Last active August 20, 2019 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rainshen49/7c982358b712fb67e434355ee001c23e to your computer and use it in GitHub Desktop.
Save rainshen49/7c982358b712fb67e434355ee001c23e to your computer and use it in GitHub Desktop.
def minimum_candidate_filter(l):
return [n for n in l if int(n**.5)**2==n and str(n)==str(n)[::-1]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment