Largest Prime Number in the sequence

Of course, it’s not like a computer program would show that it diverged–after all, it could converge to a number just slightly higher than the one you’re at now, and very slowly at that.

But hey, glad to help out.

The naive way of factoring, dividing a given number by all numbers less than that number, is the wrong way to do it: It’s amazingly slow as numbers get bigger, and when you’re working with cryptographically-large numbers, well, you’d be better able to wait around for the universe to decide for itself whether it’s going to collapse in on itself or die a heat death.

Currently, the fastest algorithm for factoring arbitrary numbers (even really large ones, such as are used in cryptography) is known as the general number field sieve. Here is an implementation of the sieve, which provides your best bet at factoring big numbers within your lifetime.

Note that while being able to factor arbitrary huge numbers (that is, huge numbers not of a special form) in a trivial amount of time would blow the lid off modern cryptography completely and provide a step towards showing that P=NP, a more effective attack on encryption lies in searching for weaknesses in the protocol using the algorithm. An insecure key-distribution method or a social-engineering weak spot (“Yes, I am with Security. Please read off your login name and password so we can determine whether or not your account has been compromised.”), for example, would provide a much more promising foothold than an attempt to rewrite complexity theory.

(My source? Applied Cryptography, Second Edition by Bruce Schneier, pub. John Wiley and Sons, Inc., copyright 1996 by Bruce Schneier, ISBN 0-471-11709-9, a great book to take on a transatlantic flight. :slight_smile: Really, it gives the C sources for nine strong encryption algorithims (including DES and RC5), plus enough information to implement any other encryption, hash, or key-generation algorithm of interest to the modern cryptographer with a knowledge of one good language. (koffPerlkoff) And it has a bibliography good enough to use as a buying list for a world-class cryptography/cryptanalysis reference library. It’s good enough it’ll never be sold in North Korea or Afghanistan.)

No, it’s not that easy at all. In fact, if you think it is and wanna make a few dollars at it (from $10,000 to $200,000) there’s the
RSA Cryptography Challenge

You can start with 576-bit numbers (weighing in at 174 decimal digits) and then work your way up to 2048-bit numbers (weighing in at 617 digits.) The product pq is given. Just find p and q.

Currently, the highest number factored on the RSA Challenge is a 512-bit number (155 digits.) Just the sieving took them 3.7 months, using two different sieving programs. The equivalent CPU time was 35.7 years. 292 computers in all were used.
Total factoring time was 5.2 months.

A 140-digit number took 9 weeks to solve. This is very much an exponential slope. Adding several digits compounds the computing time astronomically.

Chronos & ultrafilter: The series of prime reciprocals diverges extremely slowly so it would take a long time even to be able to guess the limiting behaviour from a computer analysis.
It can be shown that the series is asymptotically ln ln x: to get a sum greater than 5 you would need to take the primes less than 2.8510[sup]64[/sup]; to get the sum greater than 6 you would need to go up to 1.610[sup]175[/sup].

I love how much information is in this thread, without even a single WAG to answer the OP. :wink:

I know, it’s becoming embarrassing, isn’t it?
The best I’ve got so far is 1,999,999,973. All primes below 2*10[sup]9[/sup] are known and this is largest such.

And don’t you love the SDMB? I bet you don’t get discussions like this on AOL Chat.

Nothing wrong with this idea in theory but as a practical matter it founders on the fact that there are so damn many large primes.

We can get a pretty good estimate of the number of primes <= X using the approximation p(X) = (X/(logX - 1).

I make it that there are approximately 3.88 * 10[sup]98[/sup] 100-digit primes, so your table of products will contain about 7.5 * 10[sup]196[/sup] entries.

So if I write this regular expression:

[\s\S]*

then I have prior art on pretty much anything that will ever be written? :wink:

Holy Flurking Schmidt! That’s a log of a log? I guess my little QBASIC program was a monumental exercise in futility. On the other hand, I was only 15, so some naivety can perhaps be excused.

As for the patent question, by the way: Those who have a difficult time with the idea of intellectual property rights on a number might like to consider how one could get IP rights on anything other than a number. Suppose I write a novel… I can copyright that, right? But in this day and age, I’m most likely to submit that novel to a publisher in some electronic form, which means that my copyrighted work consists of a list of ones and zeros. That list of digits can, in turn, be considered a number. If it’s the size of the number that makes a difference, I suspect that there are copyrighted poems and other short works shorter than the above-mentioned patented primes. Of course, a patent is not the same thing as a copyright, but I would imagine that similar ideas would apply.

Point taken, but I still don’t buy the idea of a number being patented. “War and Peace” was created - it’s not like that work was floating around in the ether, just waiting to be discovered. Numbers exist. The large primes exist : they are found, not created or invented.

Personally, I’m a math purist, in the sense that I believe numbers and their relationships ARE, whether we’re here to find them or not. Regardless of what base you express it in, [symbol]p[/symbol] is always the same quantity. Same for 1, e, and [symbol]Ö[/symbol]2. And whether we discover them or not, large primes exist. That’s like patenting a cat or a tree, just because you found it.

Not to start a debate, but there is a (large) number which is the ASCII representation of “War and Peace”. By your reasoning, that number existed before the book was written.

Also, if numbers exist independent of the human mind, then why not strings of characters? They can be defined in the same terms as numbers (FWIW, in modern math, the only things that are taken to exist are sets, and everything else is done in terms of them).

Again, I don’t really want to start a debate, just to make you think a little. Do a search in GD on “patent number” and you should find something relevant.

Again, I see the point you’re making, but I don’t agree. Sure, the number existed, but its mapping into language didn’t. That is, until somebody first wrote the book, then somebody else decided that numbers can represent text, then created a system to map language into numerical representation.

I mean, sure, there’s also a number representing Romeo and Juliet, where everybody dies except the title characters. There’s also a numerical representation of War and Peace, but with every instance of ‘the’ replaced with ‘lesbian’. That doesn’t mean that nobody has to write it to find the mapping.

I guess you could call it splitting hairs, but oh well. Like I said, I get what you’re saying, I just don’t agree.

Just FYI, a lot of people would disagree with this. Personally, I don’t believe that either existed independently of the human mind, but others would believe that both have always existed. Again, there’s a bunch of stuff in GD on this.

Again, disagree. :slight_smile:

I believe, as I said on the other threads, that the numbers just ARE, whether we discover them or not. Circular and linear (or very nearly so) objects exist, and regardless of whether there’s anybody in the forest to hear it fall, there is a set of points equidistant from any given point.

Our method of defining, notating, and handling numbers is arbitrary and invented (as can be attested by all the different number systems that have been in use in the past), but the quantities and relationships exist in and of themselves.

Well, yes, the numbers corresponding to those strings of text do exist, but at some point someone decided that the particular string wherein the lovers die had some value. Similarly, there are many numbers, or even prime numbers, but at some point, someone decided that that particular number had value.