gotta catch em all
This commit is contained in:
parent
0a71797026
commit
b0ff129e6f
|
@ -92,6 +92,7 @@ class PrimeModule
|
||||||
}
|
}
|
||||||
|
|
||||||
\danog\MadelineProto\Logger::log(['Trying to use the wolfram alpha factorization module'], \danog\MadelineProto\Logger::VERBOSE);
|
\danog\MadelineProto\Logger::log(['Trying to use the wolfram alpha factorization module'], \danog\MadelineProto\Logger::VERBOSE);
|
||||||
|
try {
|
||||||
$query = 'Do prime factorization of '.$pqstr;
|
$query = 'Do prime factorization of '.$pqstr;
|
||||||
$params = [
|
$params = [
|
||||||
'async' => true,
|
'async' => true,
|
||||||
|
@ -119,6 +120,8 @@ class PrimeModule
|
||||||
if (count($res) === 2) {
|
if (count($res) === 2) {
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
} catch (Exception $e) {
|
||||||
|
}
|
||||||
|
|
||||||
\danog\MadelineProto\Logger::log(['Trying to use the native factorization module'], \danog\MadelineProto\Logger::VERBOSE);
|
\danog\MadelineProto\Logger::log(['Trying to use the native factorization module'], \danog\MadelineProto\Logger::VERBOSE);
|
||||||
$res = $this->find_small_multiplier_lopatin((int) $pqstr);
|
$res = $this->find_small_multiplier_lopatin((int) $pqstr);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user