1   object find_Divisors {
   2      def main(args: Array[String]) {
   3        for (n <- 1 to 1000000 )
   4        { val s: String = n.toString()
   5          var r: String = s( 0 ).toString()
   6          
   7          for (i <- 1 to s.length()-1 )
   8            r = s( i ).toString() + r
   9            
  10          if ( ! r( 0 ).equals('0') && ! r.equals( s ) && 
  11                Integer.parseInt(s) % Integer.parseInt(r) == 0 )
  12            println( s )
  13        }
  14      }
  15    }