"Sum of digits"
As an example, the sum of the digits of 2 to the 10th power is:
2^10 = 1024 => 1+0+2+4 => 7
What is the sum of the digits of 2^50?
Understand the math and this challenge will be easy.
Awnser:
76
Source:
function solution(){
$result = pow(2, 50);
$array = str_split($result);
$arraysum = array_sum($array);
echo $arraysum;
}