![]() |
|
|
#1 |
|
Random Account
Aug 2009
13·151 Posts |
How does P95, or any other numeric application, work with numbers which are made up of millions of digits?
I've been a programmer for over 20 years and I do not know of any data type in any programming platform that can do this.
|
|
|
|
|
|
#2 |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
10AB16 Posts |
|
|
|
|
|
|
#3 | |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
22×3×641 Posts |
Quote:
Chapter 4.3 in TAOCP Volume 2 is about multiple-precision arithmetic. It explains the basics of: a) representing integers that are too large to fit within a single computer word (or other data type element), b) performing arithmetic on such multiple-precision integers, c) modular arithmetic on multiple-precision integers, and d) fast multiplication of multiple-precision integers. Last fiddled with by cheesehead on 2009-08-23 at 01:52 |
|
|
|
|
|
|
#4 |
|
Jul 2006
Calgary
52·17 Posts |
Simply put (it gets much more complex when you start optimizing) use an array of numbers for each number. similar to when you do arithmetic by hand you can treat a number as an array of digits and operate on one "digit" at a time.
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to calculate work/effort for PRP work? | James Heinrich | PrimeNet | 0 | 2011-06-28 19:29 |
| No Work | Pilgrim | Information & Answers | 1 | 2008-01-31 18:53 |
| Out of Work? | birdman2584 | Sierpinski/Riesel Base 5 | 12 | 2006-11-22 00:06 |
| It seems to work, but why ? | T.Rex | Math | 15 | 2005-10-15 10:38 |
| work to do... | guido72 | Software | 2 | 2002-09-26 15:47 |