Last active
February 13, 2018 11:43
-
-
Save dkarbayev/d6f63511627a7a6510d51dc22b7fc09f to your computer and use it in GitHub Desktop.
This file contains 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
let golf:(Int)->Int={n in(n+1...).first(where:{k in String(k)==String(String(k).reversed())&&Array(2...k/2).filter({k%$0<1}).isEmpty})!} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment