Prime pursuit: constructing an efficient prime number detector.Prime numbers There are infinitely many prime numbers. The first 500 are listed below, followed by lists of the first prime numbers of various types in alphabetical order. The first 500 prime numbers 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 lie at the core of some of the oldest and most perplexing per·plex tr.v. per·plexed, per·plex·ing, per·plex·es 1. To confuse or trouble with uncertainty or doubt. See Synonyms at puzzle. 2. To make confusedly intricate; complicate. questions in mathematics. Evenly divisible DIVISIBLE. The susceptibility of being divided. 2. A contract cannot, in general, be divided in such a manner that an action may be brought, or a right accrue, on a part of it. 2 Penna. R. 454. only by themselves and 1, they are the building blocks of integers. In recent decades, prime numbers have emerged from their starring roles in mathematical research (SN: 5/25/02, p. 324) by becoming prized commodities--as elements in a cryptographic scheme widely used to keep digital messages secret (SN: 2/6/99, p. 95). Although there are infinitely many primes, they are also relatively scarce and rather haphazardly scattered among the integers. Indeed, of the first 25 billion whole numbers, only 1,091,987,405--or about 4 percent--are primes, and the proportion of primes decreases as the numbers get bigger. The absence of any readily discernible pattern in their distribution makes identifying primes a tricky proposition. Is 687,532,127 a prime? There's no way to tell simply by looking. Clearly, the number isn't evenly divisible by two, nor by any other even number. Is it divisible by 3? 5? 7? By 26,203? In fact, 687,532,127 has no divisors other than one and itself, so it's a prime. This process of elimination The process of elimination is a basic logical tool to solve real world problems. By subsequently removing options that may be deemed impossible, illogical, or can be easily ruled out due to some sort of explicit understanding relative to the entire set of options, the pool of by trial division is the idea behind the prime-detecting sieve of Eratosthenes A benchmark program used to test the mathematical speed of a computer. The program calculates prime numbers based on Eratosthenes's algorithm. , named for a Greek mathematician who lived in the third century B.C. The sieve of Eratosthenes represents a systematic way of checking whether a number is a prime by dividing into the given number all smaller primes, starting with two and going up to the square root of the target number. If none of the integers divides evenly into the given number, the target is a prime. In the case of huge numbers, however, trial division is both tedious and time-consuming. Even so, the need to undertake such primal analysis has mushroomed because of the increasing importance of cryptography. One widely used cryptographic scheme is based on the notion that, whereas it's relatively easy to multiply together large primes, it's considerably more difficult to factor the resulting number and retrieve the original primes. Yet that operation is just the one required for decoding the encrypted messages. This scheme requires a ready-to-use supply of large primes, so it has encouraged mathematicians and computer scientists to seek increasingly efficient ways of identifying prime numbers. Now, a team from the Indian Institute The Indian Institute in central Oxford, England is located at the north end of Catte Street on the corner with Holywell Street and faching down Broad Street from the east.[1] of Technology (IIT IIT - Integrated Information Technology ) in Kanpur, India, has devised a novel approach for detecting primes. The new technique solves a long-standing problem in number theory and computer science, providing a long-sought improvement in the theoretical efficiency of prime-detecting algorithms. "It is a lovely result and gives the field of algorithmic number theory a shot in the arm," says number theorist Noun 1. number theorist - a mathematician specializing in number theory mathematician - a person skilled in mathematics Carl Pomerance Carl Pomerance (born in 1944 in Joplin, Missouri) is a well known number theorist. He attended college at Brown University and later received his PhD from Harvard University in 1972 for his study that any odd perfect number N has at least 7 distinct prime factors. of Bell Laboratories in Murray Hill Murray Hill may refer to one of the following places:
The IIT team of Manindra Agrawal Manindra Agrawal (मणीन्द्र अग्रवाल) (born 20 May, 1966 in Allahabad) is a Professor and Head of the Department of Computer , Neeraj Kayal Neeraj Kayal is an Indian computer scientist. Kayal was born and brought up in Guwahati, India. He was awarded the National Talent Search Scholarship, as well as the Jagadis Bose National Science Talent Search (Junior) Scholarship, both in 1996. , and Nitin Saxena Nitin Saxena obtained his Ph.D. at the Computer Science Department of the Indian Institute of Technology, Kanpur, India. He also graduated with his B.Tech from the same institute in 2002. announced its findings in August. Mathematicians quicklyconfirmed the validity of the results, and some researchers have already made improvements, offering hope that this novel approach eventually may be turned into a practical, speedy method for finding primes. TIME TRIALS With computers now doing all the heavy lifting in testing for primes, much recent research has focused on the efficiency of competing sets of instructions, or algorithms. This efficiency is typically measured in terms of how the demand on computer resources, such as time or memory, goes up as the size of the number to be tested increases. The efficiency of the venerable sieve of Eratosthenes, for example, is related to the number of trial divisions required to test a given integer for primality. The trouble is that the number of trial divisions grows exponentially with the number of digits in the target integer. So, although it's a practical way to test integers smaller than 10 billion, which have nine digits, it fails miserably for integers of 25 digits or more. Today's heavily used, computer-based procedures for detecting primes rely instead on a mathematical shortcut (1) In Windows, a shortcut is an icon that points to a program or data file. Shortcuts can be placed on the desktop or stored in other folders, and double clicking a shortcut is the same as double clicking the original file. discovered in the 17th century by jurist A judge or legal scholar; an individual who is versed or skilled in law. The term jurist is ordinarily applied to individuals who have gained respect and recognition by their writings on legal topics. jurist n. and mathematician Pierre de Fermat Noun 1. Pierre de Fermat - French mathematician who founded number theory; contributed (with Pascal) to the theory of probability (1601-1665) Fermat . His so-called little theorem expresses a remarkable relationship involving primes: If an integer p is a prime number, then for all integers a, dividing both [a.sup.p] and a by p gives a result with the same remainder. For example, if p = 7 (a prime) and a = 9, dividing [9.sup.7] by 7 gives a remainder of 2, as does dividing 9 by 7. Any integer p that fails this test isn't a prime; it's a composite number with factors other than 1 and itself. However, a few composite numbers also pass the test, so further steps are needed to weed them out to ensure that the target truly is a prime (SN: 3/6/82, p. 158). For practical purposes, it isn't usually necessary to cheek specifically for these fake primes. The idea behind today's most efficient Fermat-based algorithms is to test the integer in question using a randomly chosen value for a. If the integer passes the Fermat test, there's only a small probability that it's actually not a prime. If the target integer is tested again with another randomly chosen value of a and still passes, the probability is even smaller that it's not a prime. The more times it passes, the more likely it is to be an authentic prime. By repeating the test enough times, it's possible to reduce the probability of error Probability of error in hypothesis testing In hypothesis testing in statistics, two types of error are distinguished.
ELUSIVE EFFICIENCY What had eluded researchers until now, however, was a prime-detecting method that not only always yields a correct answer but also meets another important criterion: efficiency of calculation. Instead of an algorithm requiring an amount of computer time that grows exponentially with the target number's size, computer scientists wanted one that grows more slowly, say, at a rate that's only proportional to the number size or, more likely, a straightforward power of the number size. For example, suppose that the number of digits in a target integer is N and the number of digits is doubled to 2N. With exponential growth Extremely fast growth. On a chart, the line curves up rather than being straight. Contrast with linear. , the time required to test the number would increase from [b.sup.N] to [b.sup.2N], where b is some constant related to the prime-testing algorithm. If, instead, the rate grows as a power of number size, the time would increase at a more sedate se·date v. To administer a sedative to; calm or relieve by means of a sedative drug. pace from [N.sup.c] to [(2N).sup.c], where the exponent c is a constant. In the latter case, researchers describe the algorithm as taking no more than polynomial time. A polynomial polynomial, mathematical expression which is a finite sum, each term being a constant times a product of one or more variables raised to powers. With only one variable the general form of a polynomial is a0xn+a is an algebraic expression containing powers of one or more variables. To find a prime-detecting algorithm that could do the job in polynomial time, researchers had explored a variety of approaches--some based on highly sophisticated mathematics--but with limited success. In 1999, Agrawal decided to try a relatively simple approach that he noticed had been overlooked by others. He enlisted the aid of Kayal and Saxena, who were undergraduate students at the time. Early computer simulations were encouraging, but only this past summer did the team finally work out the complete method and the mathematical proof establishing its theoretical efficiency. In effect, the IIT team found a new, generalized version of Fermat's little theorem--one in which the integers [a.sup.p] and a are replaced by polynomial expressions: [(x - a).sup.p] and ([x.sup.p] - a). Using this foundation, they formulated an algorithm that they could prove had a polynomial running time proportional to [N.sup.12]. Primality-testing methods had been getting quicker, but the algorithms had been getting more complex, says Chris K. Caldwell of the University of Tennessee The University of Tennessee (UT), sometimes called the University of Tennessee at Knoxville (UT Knoxville or UTK), is the flagship institution of the statewide land-grant University of Tennessee public university system in the American state of Tennessee. at Martin. "In contrast, [the Agrawal-Kayal-Saxena algorithm] has a shocking simplicity. It's an algorithm that most any programmer can follow," he says. PRACTICAL CONCERNS Achieving a theoretical break-through is one thing. Putting it into practice for everyday use is another matter entirely. With a running time proportional to the 12th power of the number of digits, the new algorithm is still painfully slow for relatively small numbers. As it turns out, Caldwell says, "it is far slower than trial division in practice." However, "one has to be extremely careful when pronouncing pro·nounc·ing adj. Relating to, designed for, or showing pronunciation: a pronouncing dictionary. something practical or not," warns Richard E. Crandall of the Center for Advanced Computation at Reed College in Portland, Ore. Indeed, experts who have carefully studied the Agrawal-Kayal-Saxena algorithm have already made improvements. One such variant was developed by Hendrik W. Lenstra of the University of California, Berkeley The University of California, Berkeley is a public research university located in Berkeley, California, United States. Commonly referred to as UC Berkeley, Berkeley and Cal . Crandall recently demonstrated that a computer programmed with this variant could crack a 30-digit prime in about a day instead of the several years required for the original IIT algorithm. That's a significant improvement in performance but still far from the speed required to identify, say, 1,000-digit primes. There's hope, however. A crucial step in Lenstra's variant algorithm can be readily divided up among a large number of computers. A project in which volunteers' computers around the world shared in the calculations could easily handle a 1,000-decimal-digit potential prime in about a Crandall estimates. The SETI@home project, in which more than a million computers worldwide have participated in sifting through radio-telescope signals for signs of extraterrestrial life, is one well-known example of such an effort (SN: 3/4/00, p. 152). Additional improvements in the Agrawal-Kayal-Saxena prime-detecting algorithm may be ahead. "Give number theorists a year with this algorithm, and it should be much clearer what its future is," Caldwell says. Whatever happens on the practical front, the lit work stands as a major theoretical advance. Moreover, because the team solved the problem in such an elegant, unexpected manner, mathematicians are now wondering what else they may have overlooked in other mathematical ventures. |
|
||||||||||||||||||

Printer friendly
Cite/link
Email
Feedback
Reader Opinion