New Reply

Whats the best software to calculate very large numbers?

 
Share Thread Thread Tools
Dec3-11, 03:20 PM   #1
 

Whats the best software to calculate very large numbers?


For instance, the largest known prime number has nearly 13 million decimal digits. Would any normal computer be able to calculate this?
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Bird's playlist could signal mental strengths and weaknesses
>> Minus environment, patterns still emerge: Computational study tracks E. coli cells' regulatory mechanisms
>> Bacterium uses natural 'thermometer' to trigger diarrheal disease, scientists find
Dec3-11, 03:30 PM   #2
 
Recognitions:
Science Advisor Science Advisor
I don't know what you mean by a "normal" computer. Obviously it took a computer to get this number.
Dec3-11, 04:02 PM   #3
 
I think you mean the Mersenne prime 2^43112609 -1. Mathematica running on my laptop calculated this number in under 2 minutes, so the answer to your question is yes.
Dec3-11, 04:18 PM   #4
 

Whats the best software to calculate very large numbers?


Awsome. I know when I took java a few years ago a lot of software would only store numbers up to a certain number of digits.
Dec4-11, 12:07 AM   #5
 
Is there a way I can run mathematica remotely on their server. If I try to do a primality test on a very large number on my notebook it gives me a recursive error. I suppose this is due to the fact that it ran out of memory and I only have 4gb on my notebook.
Dec4-11, 01:03 AM   #6
 
Blog Entries: 1
Recognitions:
Homework Helper Homework Help
Awsome. I know when I took java a few years ago a lot of software would only store numbers up to a certain number of digits
Most programming languages have limited size integer values because they just block off a certain (small) size of memory.

You can use java's BigInteger class to store numbers of arbitrarily large size (up to your machine's memory limit I guess)
Dec5-11, 12:28 AM   #7
 
Quote by clearwater304 View Post
Is there a way I can run mathematica remotely on their server.
I don't know anything about these folks, but they seem to offer Mathematica service.

http://www.nimbisservices.com/catalo...es-mathematica
Dec5-11, 12:45 AM   #8
 
Mathematica seems to be the way to go, now I just have to create a customized primality test so it doesn't take a year to prove.
Dec5-11, 05:34 AM   #9
 
What are you trying to do? Calculating a number like this is much, much faster than proving that it is prime. Encryption algorithms rely on the fact that multiplying two large primes to generate a large composite is much (much) faster than extracting these two primes from the resulting composite.
Dec6-11, 12:39 AM   #10
 
Theres this prize given by the eff for calculating a prime with 1 billion digits. I want to develop a primality test to make the computing time more efficient.
Dec7-11, 08:12 PM   #11
 
Quote by phyzguy View Post
What are you trying to do? Calculating a number like this is much, much faster than proving that it is prime. Encryption algorithms rely on the fact that multiplying two large primes to generate a large composite is much (much) faster than extracting these two primes from the resulting composite.
I'm don't think that you meant this, but it should be reiterated that one does not ever need to find a factor of a number to prove that it's composite, even for extraordinarily large numbers.
Dec8-11, 10:17 PM   #12
 
Quote by clearwater304 View Post
Is there a way I can run mathematica remotely on their server. If I try to do a primality test on a very large number on my notebook it gives me a recursive error. I suppose this is due to the fact that it ran out of memory and I only have 4gb on my notebook.
Solving 10^13000000=2^x gives x~40000000, which means it will take about 40 million bits to represent the number, which would be 5 million bytes. Since most computers have on the order of billions of bytes (gigabytes) the memory isn't the problem. The problem is the computation.

Quote by clearwater304 View Post
Mathematica seems to be the way to go, now I just have to create a customized primality test so it doesn't take a year to prove.
Good luck with that. You might want to look at some other the existing ones first. The AKS primality test is the best known primality test.

Quote by Feryll View Post
I'm don't think that you meant this, but it should be reiterated that one does not ever need to find a factor of a number to prove that it's composite, even for extraordinarily large numbers.
You do it you want your algorithm to be anywhere near efficient. EDIT: Never mind, I was wrong. I was presuming you were referring to the Wilson test, but I just remembered the quadratic residue test, which is a very efficient way to eliminate a lot of composite numbers without finding a factor.

Quote by clearwater304 View Post
For instance, the largest known prime number has nearly 13 million decimal digits. Would any normal computer be able to calculate this?
GMP, a C and C++ library, can handle arbitrarily large numbers and is very heavily optimized. So can Java's BigInteger, but I don't know how optimized it is.
Dec13-11, 02:23 AM   #13
 
Recognitions:
Gold Membership Gold Member
I strongly recommend ARIBAS

See: http://de.wikipedia.org/wiki/ARIBAS
New Reply
Thread Tools


Similar Threads for: Whats the best software to calculate very large numbers?
Thread Forum Replies
Finding the mod of large numbers Precalculus Mathematics Homework 6
Question, whats the best chemistry software for a college student? Chemistry 4
whats my best formula to use to calculate Horsepower or Torque from acceleration data General Physics 5
Strong Law of Large Numbers Set Theory, Logic, Probability, Statistics 1
Law of Large Numbers Set Theory, Logic, Probability, Statistics 1