Skip to content

Instantly share code, notes, and snippets.

@detomastah
Created February 25, 2013 15:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save detomastah/5030383 to your computer and use it in GitHub Desktop.
arr = (1..129).map{|a| a}
arr2 = (1001..1129).map{|a| a}
(0..ARGV[0].to_i).each do |a|
(0..128).each do |b|
if arr[b] % 2 == 0
arr[b] += arr2[b]
else
arr2[b] *= arr[b]
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment