Skip to content

Instantly share code, notes, and snippets.

@kazua
Last active December 11, 2015 07:08
Show Gist options
  • Save kazua/4564288 to your computer and use it in GitHub Desktop.
Save kazua/4564288 to your computer and use it in GitHub Desktop.
Project Euler Problem 36
//http://odz.sakura.ne.jp/projecteuler/index.php?cmd=read&page=Problem%2036
//K.A
object problem36 {
def problem36 = (1 until 1000000).filter(i => i.toString == i.toString.reverse && i.toBinaryString == i.toBinaryString.reverse).sum
def main(args : Array[String]) {
println(problem36)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment