1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 11:14:40 +01:00

Translating...

This commit is contained in:
danogentili 2016-06-26 15:28:39 +02:00
parent 5cae168a55
commit 11d367146a
2 changed files with 1 additions and 0 deletions

Binary file not shown.

View File

@ -147,6 +147,7 @@ function pollard_brent($n) {
} }
$smallprimes = primesbelow(10000); $smallprimes = primesbelow(10000);
function primefactors($n, $sort = false) { function primefactors($n, $sort = false) {
global $smallprimes;
$factors = []; $factors = [];
$limit = (pyjslib_int(pow($n, 0.5)) + 1); $limit = (pyjslib_int(pow($n, 0.5)) + 1);
foreach ($smallprimes as $checker) { foreach ($smallprimes as $checker) {