fork(2) download
  1. object Main extends App {
  2. val range = (0 to 999)
  3. val result = (for (i1 <- range; i2 <- range) yield i1 * i2)
  4. .filter(i => i.toString == i.toString.reverse)
  5. .max
  6. println(result)
  7. }
Success #stdin #stdout 1.18s 322432KB
stdin
Standard input is empty
stdout
906609