Skip to content

Instantly share code, notes, and snippets.

@MohamedAlaa
Last active June 22, 2026 06:37
Show Gist options
  • Select an option

  • Save MohamedAlaa/8722642 to your computer and use it in GitHub Desktop.

Select an option

Save MohamedAlaa/8722642 to your computer and use it in GitHub Desktop.
Egyptian Geeks - Project Euler Problem 2
#! /usr/bin/env ruby
first = 0
second = 1
i = 0
sum = 0
limit = 4000000
while i <= limit
i = first + second
sum += i if i % 2 == 0
first = second
second = i
end
puts sum
@RamonaJSanchez

Copy link
Copy Markdown

It's fantastic that war the knights offers such engaging gameplay and impressive combat skills!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment