When.com Web Search

Search results

  1. Results From The WOW.Com Content Network
  2. Primality test - Wikipedia

    en.wikipedia.org/wiki/Primality_test

    Primality test. A primality test is an algorithm for determining whether an input number is prime. Among other fields of mathematics, it is used for cryptography. Unlike integer factorization, primality tests do not generally give prime factors, only stating whether the input number is prime or not.

  3. Formula for primes - Wikipedia

    en.wikipedia.org/wiki/Formula_for_primes

    Formula for primes. In number theory, a formula for primes is a formula generating the prime numbers, exactly and without exception. Formulas for calculating primes do exist; however, they are computationally very slow. A number of constraints are known, showing what such a "formula" can and cannot be.

  4. Miller–Rabin primality test - Wikipedia

    en.wikipedia.org/wiki/Miller–Rabin_primality_test

    The Miller–Rabin primality test or Rabin–Miller primality test is a probabilistic primality test: an algorithm which determines whether a given number is likely to be prime, similar to the Fermat primality test and the Solovay–Strassen primality test. It is of historical significance in the search for a polynomial-time deterministic ...

  5. Prime number - Wikipedia

    en.wikipedia.org/wiki/Prime_number

    A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only ways of writing it as a product, 1 × 5 or 5 × 1, involve 5 itself. However, 4 is composite because it is a ...

  6. Fermat primality test - Wikipedia

    en.wikipedia.org/wiki/Fermat_primality_test

    Concept. Fermat's little theorem states that if p is prime and a is not divisible by p, then. If one wants to test whether p is prime, then we can pick random integers a not divisible by p and see whether the congruence holds. If it does not hold for a value of a, then p is composite. This congruence is unlikely to hold for a random a if p is ...

  7. Lucas–Lehmer primality test - Wikipedia

    en.wikipedia.org/wiki/Lucas–Lehmer_primality_test

    The Mersenne number M 3 = 2 3 −1 = 7 is prime. The Lucas–Lehmer test verifies this as follows. Initially s is set to 4 and then is updated 3−2 = 1 time: s ← ( (4 × 4) − 2) mod 7 = 0. Since the final value of s is 0, the conclusion is that M 3 is prime. On the other hand, M 11 = 2047 = 23 × 89 is not prime.

  8. Generation of primes - Wikipedia

    en.wikipedia.org/wiki/Generation_of_primes

    Generation of primes. In computational number theory, a variety of algorithms make it possible to generate prime numbers efficiently. These are used in various applications, for example hashing, public-key cryptography, and search of prime factors in large numbers. For relatively small numbers, it is possible to just apply trial division to ...

  9. Solovay–Strassen primality test - Wikipedia

    en.wikipedia.org/wiki/Solovay–Strassen...

    The Solovay–Strassen primality test, developed by Robert M. Solovay and Volker Strassen in 1977, is a probabilistic test to determine if a number is composite or probably prime. The idea behind the test was discovered by M. M. Artjuhov in 1967 [1] (see Theorem E in the paper). This test has been largely superseded by the Baillie–PSW ...