enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. Sieve of Eratosthenes - Wikipedia

    en.wikipedia.org/wiki/Sieve_of_Eratosthenes

    The multiples of a given prime are generated as a sequence of numbers starting from that prime, with constant difference between them that is equal to that prime. [1] This is the sieve's key distinction from using trial division to sequentially test each candidate number for divisibility by each prime. [ 2 ]

  3. Primality test - Wikipedia

    en.wikipedia.org/wiki/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.

  4. Undecidable problem - Wikipedia

    en.wikipedia.org/wiki/Undecidable_problem

    A decision problem is a question which, for every input in some infinite set of inputs, answers "yes" or "no". [2] Those inputs can be numbers (for example, the decision problem "is the input a prime number?") or values of some other kind, such as strings of a formal language.

  5. List of undecidable problems - Wikipedia

    en.wikipedia.org/wiki/List_of_undecidable_problems

    For functions in certain classes, the problem of determining: whether two functions are equal, known as the zero-equivalence problem (see Richardson's theorem); [4] the zeroes of a function; whether the indefinite integral of a function is also in the class. [5] Of course, some subclasses of these problems are decidable.

  6. Fermat primality test - Wikipedia

    en.wikipedia.org/wiki/Fermat_primality_test

    Fermat's little theorem states that if p is prime and a is not divisible by p, then a p − 1 ≡ 1 ( mod p ) . {\displaystyle a^{p-1}\equiv 1{\pmod {p}}.} 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.

  7. Decision problem - Wikipedia

    en.wikipedia.org/wiki/Decision_problem

    An example of a decision problem is deciding with the help of an algorithm whether a given natural number is prime. Another example is the problem, "given two numbers x and y, does x evenly divide y?" A method for solving a decision problem, given in the form of an algorithm, is called a decision procedure for that problem.

  8. Baillie–PSW primality test - Wikipedia

    en.wikipedia.org/wiki/Baillie–PSW_primality_test

    In Python, the NZMATH [23] library has the strong pseudoprime and Lucas tests, but does not have a combined function. The SymPy [24] library does implement this. As of 6.2.0, GNU Multiple Precision Arithmetic Library's mpz_probab_prime_p function uses a strong Lucas test and a Miller–Rabin test; previous versions did not make use of Baillie ...

  9. Generation of primes - Wikipedia

    en.wikipedia.org/wiki/Generation_of_primes

    A prime sieve works by creating a list of all integers up to a desired limit and progressively removing composite numbers (which it directly generates) until only primes are left. This is the most efficient way to obtain a large range of primes; however, to find individual primes, direct primality tests are more efficient [ citation needed ] .