diff --git a/euler21.php b/euler21.php new file mode 100644 index 0000000..3d87337 --- /dev/null +++ b/euler21.php @@ -0,0 +1,21 @@ + $d){ + + if((isset($sumOfDivisors[$d])) && ($sumOfDivisors[$d]==$a) && ($a<>$d)){ + $sum+=$a; + } +} +echo $sum; \ No newline at end of file