Solved a few more problems
003: php 005: php, ruby 006: php, ruby, c
This commit is contained in:
12
ProjectEuler/005/solve.php
Normal file
12
ProjectEuler/005/solve.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
for($i=20;true;$i+=20) {
|
||||
$div = 19;
|
||||
|
||||
while(!($i % $div)) {
|
||||
$div--;
|
||||
if($div == 0) {
|
||||
echo $i;
|
||||
die;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user