Torsten
6b1c316f04
fiddled with run numbers a bit recording times with noop removed results slightly worse than hoped
28 lines
294 B
Go
28 lines
294 B
Go
package main
|
|
|
|
func fibo(n int ) int {
|
|
|
|
result := 0
|
|
a := 0
|
|
b := 1
|
|
i := 1
|
|
|
|
for( i < n ) {
|
|
result = a + b;
|
|
a = b;
|
|
b = result;
|
|
i++;
|
|
}
|
|
return result
|
|
}
|
|
|
|
func main() {
|
|
sum := 1
|
|
res := 0
|
|
for sum < 50000 {
|
|
sum += 1
|
|
res = fibo( 40 )
|
|
}
|
|
res += 1
|
|
}
|