Re: TIB: Looking for prime factorization code


[Prev][Next][Index][Thread]

Re: TIB: Looking for prime factorization code



At 15:36 1997-10-01 -0700, you wrote:
>Does anyone have a program for finding the prime factorization of a
>number?   
>
I made a program for that seme time ago.

It divides the number with two and checks if the fPart of the answer equals
0, if it does it can be divided with two.
After dividing with two it tryes the same for all odd numbers upp to the
square root of the original number.

Good luck   /Kåre

.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.
:   http://hem.passagen.se/karekrig/    :
:      karekrig@hem.passagen.se         :
:oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo:


Follow-Ups: References: