Forum: Object-Pascal / Delphi-Language
Delphi
by DeddyH,
23. Dez 2022
This would be difficult to translate, because AFAIK there is no builtin BigInteger-Type in Delphi. Also I don' t know if there are any RNG-implementations without external libraries.
Forum: Object-Pascal / Delphi-Language
Delphi
by DeddyH,
22. Dez 2022
Completely untested (written in Notepad++):
function PQFactorize(pq: LongWord): LongWord;
function gcd(left, right: LongWord): LongWord;
var
num: LongWord;
begin
while right <> 0 do
begin
num := left mod right;