Created
January 21, 2013 12:09
-
-
Save kazua/4585623 to your computer and use it in GitHub Desktop.
Project Euler Problem 63
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%2063 | |
| //K.A | |
| import scala.math._ | |
| object problem63 { | |
| def problem63 = (1 until 10).map(i => (log(10D) / log(10D / i)).toInt).sum | |
| def main(args : Array[String]) { | |
| println(problem63) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment