Skip to content

Instantly share code, notes, and snippets.

@tototoshi
Created January 29, 2011 13:55
Show Gist options
  • Save tototoshi/801846 to your computer and use it in GitHub Desktop.
Save tototoshi/801846 to your computer and use it in GitHub Desktop.
for (n <- 0 to 2000000000) {
val ns = for (m <- 1 to 5) yield {
(n * m).toString.sorted
}
if (ns.distinct.length == 1) println(n)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment