This commit is contained in:
Gnieark 2015-11-21 14:44:00 +01:00
parent 5177729721
commit dcbaa4c2cc

View File

@ -13,7 +13,6 @@ $sum=0;
//If d(a) = b and d(b) = a, where a ≠ b, //If d(a) = b and d(b) = a, where a ≠ b,
foreach($sumOfDivisors as $a => $d){ foreach($sumOfDivisors as $a => $d){
if((isset($sumOfDivisors[$d])) && ($sumOfDivisors[$d]==$a) && ($a<>$d)){ if((isset($sumOfDivisors[$d])) && ($sumOfDivisors[$d]==$a) && ($a<>$d)){
$sum+=$a; $sum+=$a;
} }