Skip to content

Instantly share code, notes, and snippets.

@daiksy
Created December 8, 2012 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daiksy/4239846 to your computer and use it in GitHub Desktop.
Save daiksy/4239846 to your computer and use it in GitHub Desktop.
Project Euler Problem 20
(BigInt(100) to BigInt(1) by -1).reduce((x, y) => x * y).toString.toList.map(_.getNumericValue).sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment