home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: sci.math
- Path: sparky!uunet!caen!hellgate.utah.edu!fcom.cc.utah.edu!news
- From: NAHAJ@CC.UTAH.EDU (John B 'Nahaj' Halleck, UUCC)
- Subject: What is this factoring method called??
- Message-ID: <1992Dec31.221329.12648@fcom.cc.utah.edu>
- Sender: news@fcom.cc.utah.edu
- Organization: UNIVERSITY OF UTAH COMPUTER CENTER
- Date: Thu, 31 Dec 92 22:13:29 GMT
- X-News-Reader: VMS NEWS 1.24
- Lines: 18
-
- What is this factoring method called? Where can I read up on it?
- (email me and I'll post a summary)
-
- p = isqrt(n);
- q = p;
- quess = p*q;
-
- while guess <> n do
- if guess > n then
- guess = guess - p;
- q = q - 1;
- else
- guess = guess + q;
- p = p + 1;
- endif
- end while
-
- print ("The factors are: ", p, q );
-