fork download
  1. <?php
  2.  
  3. /**
  4.  * Project Euler Problem 5: Smallest multiple
  5.  *
  6.  * 2520 is the smallest number that can be divided by each of the numbers from 1
  7.  * to 10 without any remainder.
  8.  *
  9.  * What is the smallest positive number that is evenly divisible by all of the
  10.  * numbers from 1 to 20?
  11.  *
  12.  * Problem: https://p...content-available-to-author-only...r.net/problem=5
  13.  * Solution: https://g...content-available-to-author-only...b.com/potherca-blog/ProjectEuler/blob/master/src/PHP/Solutions/Problem005.php
  14.  * Live code: https://i...content-available-to-author-only...e.com/
  15.  */
  16. namespace Potherca\ProjectEuler\Solutions\Problem005
  17. {
  18. use Potherca\ProjectEuler\Calculators\SmallestMultipleeCalculator as Calculator;
  19.  
  20. $limit = 10;
  21.  
  22. $solution = (new Calculator())->get($limit);
  23.  
  24. echo $solution;
  25. }
  26.  
  27. namespace Potherca\ProjectEuler\Calculators
  28. {
  29. class SmallestMultipleeCalculator
  30. {
  31. final public function get(int $limit): int
  32. {
  33. return 0;
  34. }
  35. }
  36. }
  37.  
Success #stdin #stdout 0.04s 24044KB
stdin
Standard input is empty
stdout
Standard output is empty