Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
|
|
@ -0,0 +1,19 @@
|
|||
function Factors(N: BigInteger): List<BigInteger>;
|
||||
begin
|
||||
var lst := new List<BigInteger>;
|
||||
if N = 1 then
|
||||
lst.Add(N);
|
||||
var i := 2bi;
|
||||
while i * i <= N do
|
||||
begin
|
||||
while N mod i = 0 do
|
||||
begin
|
||||
lst.Add(i);
|
||||
N := N div i;
|
||||
end;
|
||||
i += 1;
|
||||
end;
|
||||
if N >= 2 then
|
||||
lst.Add(N);
|
||||
Result := lst;
|
||||
end;
|
||||
Loading…
Add table
Add a link
Reference in a new issue