Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 391 Bytes
(*
* Solution to Project Euler problem 16
* Copyright (c) Project Nayuki. All rights reserved.
*
* https://www.nayuki.io/page/project-euler-solutions
* https://github.com/nayuki/Project-Euler-solutions
*)
(*
* We implement this solution in a straightforward way thanks to
* Mathematica's built-in functions and arbitrary precision integer type.
*)
Total[IntegerDigits[2^1000]]