dedanoe's supersonic primality criterion



 Science > Physics > dedanoe's supersonic primality criterion

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: Science > Physics
User: "dedanoe"
Date: 22 Sep 2006 05:28:04 AM
Object: dedanoe's supersonic primality criterion
Primes are wholly numbers!
They divide only with their self to give ONE
and with ONE to give their self
and ONE is GOD product of ALL and NOTHING!
function BCD(x, y: Int64): Integer;
begin
if Abs(y)>0 then Result:= BCD(y, x mod y) else Result:= x;
end;
//if PrimeTestis returns True then N is Prime else N is Composite
function PrimeTesticals(N: Int64): Boolean;
var x, y: Integer;
begin
x:= Trunc(Sqrt(N)); y:= N-x*(x+1);
if Abs(BCD(x*(x+1), y))<>1 then Result:= False
else if Abs(BCD((x-y)*(x+1), y*(x+2)))<>1 then Result:= False
else Result:= True;
end;
Dobri Karagorgov -- Dedanoe
schizo-paranoid-lever-sex-pert
http://dedanoe.tripod.com
.

User: "dedanoe"

Title: Re: dedanoe's supersonic primality criterion 22 Sep 2006 05:51:23 AM
why on this page (http://dedanoe.tripod.com/WebForm1.aspx) the
textboxes and buttons don't show? on that site i have the
implementation for this primality criterion. it's made with Delphi.NET
dedanoe =D0=BD=D0=B0=D0=BF=D0=B8=D1=88=D0=B0:

Primes are wholly numbers!
They divide only with their self to give ONE
and with ONE to give their self
and ONE is GOD product of ALL and NOTHING!

function BCD(x, y: Int64): Integer;
begin
if Abs(y)>0 then Result:=3D BCD(y, x mod y) else Result:=3D x;
end;

//if PrimeTestis returns True then N is Prime else N is Composite

function PrimeTesticals(N: Int64): Boolean;
var x, y: Integer;
begin
x:=3D Trunc(Sqrt(N)); y:=3D N-x*(x+1);
if Abs(BCD(x*(x+1), y))<>1 then Result:=3D False
else if Abs(BCD((x-y)*(x+1), y*(x+2)))<>1 then Result:=3D False
else Result:=3D True;
end;

Dobri Karagorgov -- Dedanoe
schizo-paranoid-lever-sex-pert
http://dedanoe.tripod.com

.
User: "dedanoe"

Title: Re: dedanoe's supersonic primality criterion 22 Sep 2006 09:49:35 PM
ignore this partial solution!
dedanoe wrote:

why on this page (http://dedanoe.tripod.com/WebForm1.aspx) the
textboxes and buttons don't show? on that site i have the
implementation for this primality criterion. it's made with Delphi.NET
dedanoe =D0=BD=D0=B0=D0=BF=D0=B8=D1=88=D0=B0:

Primes are wholly numbers!
They divide only with their self to give ONE
and with ONE to give their self
and ONE is GOD product of ALL and NOTHING!

function BCD(x, y: Int64): Integer;
begin
if Abs(y)>0 then Result:=3D BCD(y, x mod y) else Result:=3D x;
end;

//if PrimeTestis returns True then N is Prime else N is Composite

function PrimeTesticals(N: Int64): Boolean;
var x, y: Integer;
begin
x:=3D Trunc(Sqrt(N)); y:=3D N-x*(x+1);
if Abs(BCD(x*(x+1), y))<>1 then Result:=3D False
else if Abs(BCD((x-y)*(x+1), y*(x+2)))<>1 then Result:=3D False
else Result:=3D True;
end;

Dobri Karagorgov -- Dedanoe
schizo-paranoid-lever-sex-pert
http://dedanoe.tripod.com

.



  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1612     pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER