Skip to content

Instantly share code, notes, and snippets.

@Codercise
Created April 4, 2012 22:43
Show Gist options
  • Save Codercise/2306221 to your computer and use it in GitHub Desktop.
Save Codercise/2306221 to your computer and use it in GitHub Desktop.
i = 0
hugeNumber = 5096498213401
while i<hugeNumber
i += 1
j = i + i
k = j * j
x = i + i * j *j
y = j * i + i * x
z = i + j + k + x + y * i * j * k * x * y
puts "#{i} #{j} #{k} #{x} #{y} #{z}"
end
puts "the final answer is #{z}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment