challenges

my solutions to various "programming challenge" problems
git clone https://wehaveforgeathome.hates.computer/challenges.git
Log | Files | Refs | LICENSE

003.php (130B)


      1 <?php
      2 
      3 $i = 600851475143;
      4 $j = 1;
      5 
      6 while ($i > $j) {
      7   $j += 2;
      8   if (fmod($i, $j) == 0) {
      9     $i = $i / $j;
     10   }
     11 }
     12 
     13 print "$j\n";