More progress

This commit is contained in:
2024-07-23 09:13:29 +00:00
parent 3903a79785
commit 6b8afd49b9
9 changed files with 223 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<?php
//Write a program or solve manually to find the smallest positive number that is evenly divisible by all of the numbers from 1 to 20.
$m3 = range(3, 1000, 3);
$m5 = range(5, 1000, 5);
$all = array_unique(array_merge($m3,$m5));
echo array_sum($all);