1
0
mirror of https://github.com/danog/PrimeModule.git synced 2024-11-26 20:34:37 +01:00

Fixes to multiple factorization

This commit is contained in:
Daniil Gentili 2018-03-16 13:00:13 +01:00 committed by GitHub
parent 1a1c52780b
commit 58e13d0a69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,7 +215,7 @@ class PrimeModule
public static function native_cpp($what)
{
$res = [self::native_single_cpp($what)];
if ($res[0] === false) {
if ($res[0] == false) {
return false;
}
while (array_product($res) !== $what) {