Prime Numbers List Calculator
List the first N primes or every prime up to N. Uses the Sieve of Eratosthenes and reports count, sum, smallest, largest, and all twin prime pairs.
Prime Number List Milestones
| Upper Limit | Prime Count | Largest Prime |
|---|---|---|
| 10 | 4 | 7 |
| 100 | 25 | 97 |
| 1,000 | 168 | 997 |
| 10,000 | 1,229 | 9,973 |
| 100,000 | 9,592 | 99,991 |
Frequently Asked Questions about the Prime Numbers List Calculator
What counts as a prime number?
A prime is a whole number greater than 1 whose only positive divisors are 1 and itself. The first ten primes are 2, 3, 5, 7, 11, 13, 17, 19, 23, and 29. The number 1 is neither prime nor composite by modern convention, which keeps prime factorization unique for every integer greater than 1.
How does the Sieve of Eratosthenes work?
The sieve lists the integers from 2 to N. For each unmarked prime p, it marks composite multiples starting at p^2 because smaller multiples were already handled by earlier primes. Once p exceeds sqrt(N), every remaining unmarked number is prime. Its time complexity is O(N log log N).
What are twin primes?
Twin primes are pairs of primes that differ by exactly 2, such as (3, 5), (5, 7), (11, 13), (17, 19), and (29, 31). The twin prime conjecture says infinitely many such pairs exist. It remains unproven, so avoid treating a computational search record as evidence that the conjecture has been settled.
Why are prime gaps larger for bigger numbers?
On average, the gap between consecutive primes near n grows like ln(n), so primes become less dense. The prime number theorem says the count of primes up to n is approximately n / ln(n). Individual gaps vary widely. Arbitrarily long runs of composite numbers are known, while infinitely many twin-prime gaps remain conjectural.
What is the largest known prime number?
The largest known prime is M136279841 = 2^136,279,841 - 1. GIMPS reported its discovery in October 2024. It has 41,024,320 decimal digits and is the 52nd known Mersenne prime. This browser calculator lists primes only within its much smaller input limit.
Related Calculators
More calculators in "Math"
Matrix CalculatorSystem of Equations CalculatorProbability CalculatorCombinations Calculator (nCr)Permutations Calculator (nPr)Pythagorean Theorem Calculator
See all 202 calculators in "Math"