Skip to content

Instantly share code, notes, and snippets.

@daiksy
Created December 8, 2012 11:05
Show Gist options
  • 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