Skip to content

Instantly share code, notes, and snippets.

@teenst
Created December 7, 2011 19:34
Show Gist options
  • Save teenst/1444266 to your computer and use it in GitHub Desktop.
Save teenst/1444266 to your computer and use it in GitHub Desktop.
ゴミ
def upto_fibonacci(i,list)
return 1 if i == 1
list[i] = list[i-1].to_i + list[i-2].to_i
return list[i]
end
list = [0,1]
i = 1
while upto_fibonacci(i,list).to_s.length < 1000
i+=1
end
p i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment