About 419,000 results
Open links in new tab
  1. Generation of primes - Wikipedia

    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 …

  2. Fastest Algorithm to Find Prime Numbers - Baeldung

    Mar 18, 2024 · In this tutorial, we’ll go over some of the well-known algorithms to find prime numbers. We’ll start with the most ancient one and end with the most recent one.

  3. Check for Prime Number - GeeksforGeeks

    Oct 11, 2025 · To check if a number n is prime, first see if it's less than 2 — if so, it's not prime. Otherwise, try dividing n by every number from 2 to n - 1. If any number divides it evenly, then …

  4. Efficient Algorithms for Finding Prime Numbers - DEV Community

    Jul 15, 2024 · This section presents several algorithms in the search for an efficient algorithm for finding prime numbers. Can you design a fast algorithm for finding prime numbers?

  5. Sieve of Eratosthenes | Brilliant Math & Science Wiki

    3 days ago · Sieve of Eratosthenes is a simple and ancient algorithm used to find the prime numbers up to any given limit. It is one of the most efficient ways to find small prime numbers.

  6. Prime Number Generation: Sieve of Eratosthenes Algorithm ...

    Efficiently generating prime numbers is crucial, and one of the oldest and most efficient algorithms to achieve this is the Sieve of Eratosthenes. This article dives deep into the algorithm details, …

  7. Sieve of Eratosthenes Algorithm: Python, C++ Example - Guru99

    Jul 28, 2025 · Here is the algorithm for the Sieve of Eratosthenes: Step 1) Create a list of numbers from 2 to the given range n. We start with 2 as it is the smallest and first prime number.