fork download
  1. main = do
  2. n <- readLn
  3. print (1!n)
  4.  
  5. x!n|mod x n==0,s<-show x,reverse s==s=x|y<-x+1=y!n
  6.  
  7.  
Success #stdin #stdout 0s 4784KB
stdin
16
stdout
272