Skip to content

Instantly share code, notes, and snippets.

@kazua
Created January 21, 2013 12:09
Show Gist options
  • Save kazua/4585623 to your computer and use it in GitHub Desktop.
Save kazua/4585623 to your computer and use it in GitHub Desktop.
Project Euler Problem 63
//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