18 lines
424 B
YAML
18 lines
424 B
YAML
title: What is the sum of the digits of the number 2^1000?
|
|
url: http://projecteuler.net/problem=16
|
|
|
|
desc: |
|
|
2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.
|
|
What is the sum of the digits of the number 2^1000?
|
|
|
|
solution: |
|
|
Bruteforce
|
|
|
|
solutions:
|
|
solve.php:
|
|
desc: Using BCMath to cope with large numbers
|
|
language: php
|
|
solve.rb:
|
|
desc: Basic solution
|
|
language: ruby
|