for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace drupol\phpermutations\Generators;
use drupol\phpermutations\GeneratorInterface;
use drupol\phpermutations\Iterators\Perfect as PerfectIterator;
class Perfect extends PerfectIterator implements GeneratorInterface
{
/**
* {@inheritdoc}
*/
public function generator(): \Generator
for ($j = 2; $this->getMaxLimit() >= $j; ++$j) {
if ($this->isPerfectNumber($j)) {
yield $j;
}