Last active
December 11, 2015 07:08
-
-
Save kazua/4564288 to your computer and use it in GitHub Desktop.
Project Euler Problem 36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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