Skip to content

Instantly share code, notes, and snippets.

@lune-sta
Created August 18, 2012 21:00
Show Gist options
  • Select an option

  • Save lune-sta/3389819 to your computer and use it in GitHub Desktop.

Select an option

Save lune-sta/3389819 to your computer and use it in GitHub Desktop.
Project Euler 28
p (1..501).map{|n|4*(2*n-3)**2+20*(n-1)}.inject{|a,b|a+b}-3 # 669171001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment