home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!uwm.edu!ux1.cso.uiuc.edu!roundup.crhc.uiuc.edu!focus!hougen
- From: hougen@focus.csl.uiuc.edu (Darrell Roy Hougen)
- Newsgroups: sci.math
- Subject: Re: Factor 69 digit integer
- Date: 11 Dec 1992 22:39:48 GMT
- Organization: Center for Reliable and High-Performance Computing, University of Illinois at Urbana-Champaign
- Lines: 16
- Message-ID: <1gb5bkINNm71@roundup.crhc.uiuc.edu>
- References: <1992Dec10.132040.1186@walter.cray.com> <101618@netnews.upenn.edu>
- NNTP-Posting-Host: focus.csl.uiuc.edu
-
- >In article <1992Dec10.132040.1186@walter.cray.com>, slow@ferrari (David Slowinski) writes:
- >>> Please help me. I need the prime factors of
- >>> 132686104398972053177608575506090561429353935989033525802891469459697
-
- Write your own infinite precision arithmetic program to solve the
- problem. Here's a start:
- (1) Store each number in an array, e.g., A[1..69] where each element
- of the array is a digit, ie., 0,1,...,9.
- (2) Implement a divide and carry algorithm. For each remainder,
- you'll have to try all dividends from 0 through 9 up the first that
- doesn't work.
-
- I'll let you fill in the details.
-
- Darrell
-
-