Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (15 sloc) 307 Bytes
object Euler025 extends EulerApp {
def answer = {
var prev2 :BigInt = 1
var prev1 :BigInt = 1
var value :BigInt = prev2 + prev1
var term = 3
while (value.toString.length < 1000) {
prev2 = prev1
prev1 = value
value = prev1 + prev2
term += 1
}
term
}
}
You can’t perform that action at this time.