1
0
mirror of https://github.com/danog/PrimeModule.git synced 2024-11-30 04:39:09 +01:00

Default to native

This commit is contained in:
Daniil Gentili 2021-09-04 18:55:26 +02:00
parent 065d6cad2b
commit 946c8273e2
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -251,6 +251,10 @@ class PrimeModule
if ($res !== false) { if ($res !== false) {
return $res; return $res;
} }
$res = self::native_single((int) $what);
if ($res !== false) {
return $res;
}
$res = self::python_single_alt($what); $res = self::python_single_alt($what);
if ($res !== false) { if ($res !== false) {
return $res; return $res;
@ -259,10 +263,6 @@ class PrimeModule
if ($res !== false) { if ($res !== false) {
return $res; return $res;
} }
$res = self::native_single((int) $what);
if ($res !== false) {
return $res;
}
$res = self::wolfram_single($what); $res = self::wolfram_single($what);
if ($res !== false) { if ($res !== false) {
return $res; return $res;