Skip to content

Instantly share code, notes, and snippets.

@ywindish
Created September 17, 2012 07:52
Show Gist options
  • Save ywindish/3736082 to your computer and use it in GitHub Desktop.
Save ywindish/3736082 to your computer and use it in GitHub Desktop.
Nintendo Code Puzzle: 1
# Solv: http://cp1.nintendo.co.jp/
x = 1
while true
if (x ** 17) % 3569 == 915
break
end
x = x + 1
end
puts x #=> 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment