21
This commit is contained in:
parent
5177729721
commit
dcbaa4c2cc
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user