<?php
/**
* Project Euler Problem 5: Smallest multiple
*
* 2520 is the smallest number that can be divided by each of the numbers from 1
* to 10 without any remainder.
*
* What is the smallest positive number that is evenly divisible by all of the
* numbers from 1 to 20?
*
* Problem: https://p...content-available-to-author-only...r.net/problem=5
* Solution: https://g...content-available-to-author-only...b.com/potherca-blog/ProjectEuler/blob/master/src/PHP/Solutions/Problem005.php
* Live code: https://i...content-available-to-author-only...e.com/
*/
namespace Potherca\ProjectEuler\Solutions\Problem005
{
use Potherca\ProjectEuler\Calculators\SmallestMultipleeCalculator as Calculator;
$limit = 10;
$solution = (new Calculator())->get($limit);
echo $solution;
}
namespace Potherca\ProjectEuler\Calculators
{
class SmallestMultipleeCalculator
{
final public function get(int $limit): int
{
return 0;
}
}
}
PD9waHAKCi8qKgogKiBQcm9qZWN0IEV1bGVyIFByb2JsZW0gNTogU21hbGxlc3QgbXVsdGlwbGUKICogCiAqIDI1MjAgaXMgdGhlIHNtYWxsZXN0IG51bWJlciB0aGF0IGNhbiBiZSBkaXZpZGVkIGJ5IGVhY2ggb2YgdGhlIG51bWJlcnMgZnJvbSAxCiAqIHRvIDEwIHdpdGhvdXQgYW55IHJlbWFpbmRlci4KICogCiAqIFdoYXQgaXMgdGhlIHNtYWxsZXN0IHBvc2l0aXZlIG51bWJlciB0aGF0IGlzIGV2ZW5seSBkaXZpc2libGUgYnkgYWxsIG9mIHRoZQogKiBudW1iZXJzIGZyb20gMSB0byAyMD8KICogCiAqIFByb2JsZW06IGh0dHBzOi8vcC4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4uci5uZXQvcHJvYmxlbT01CiAqIFNvbHV0aW9uOiBodHRwczovL2cuLi5jb250ZW50LWF2YWlsYWJsZS10by1hdXRob3Itb25seS4uLmIuY29tL3BvdGhlcmNhLWJsb2cvUHJvamVjdEV1bGVyL2Jsb2IvbWFzdGVyL3NyYy9QSFAvU29sdXRpb25zL1Byb2JsZW0wMDUucGhwCiAqIExpdmUg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