ExplorationsA search that never fails, and what that is worth
Every Even Number, Two Primes
Choose an even whole number greater than 2 and look for two primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. whose sum equals it. For example, 10 is both 3 + 7 and 5 + 5, so the primes may be equal. Goldbach’s conjectureDefinition: A conjecture is a precise mathematical claim supported by evidence but not yet proved. says every such even number has a pair; extensive searches have found no counterexampleDefinition: A counterexample is one valid case that makes a universal claim false., but a proofDefinition: A proof is a finite argument showing that a conclusion follows from stated assumptions. remains unknown.
Current view: The search
Each prime tried against one even number, with whatever it leaves behind.
- 210 − 28not prime
- 310 − 37prime, a pair
- 510 − 55prime, and it pairs with itself
- 3 + 7
- 5 + 5
Every prime tried against this number
| The prime | What is left | And that is | A pair |
|---|---|---|---|
| 2 | 8 | not prime | - |
| 3 | 7 | prime, a pair | 3 + 7 |
| 5 | 5 | prime, and it pairs with itself | 5 + 5 |
- the prime
- the prime being subtracted from the number
- what is left
- the number left behind after subtracting it
- a pair
- a row where what is left is prime as well
One row per prime, in order, starting at 2. The prime is on the left, the subtraction is written out, and what remains is on the right, marked according to whether it is prime. A row where it is gives a pair; a row where it is not is a prime that does not work, and those rows are shown rather than skipped because the machine is a search and a search that only prints its successes is a list. The search stops at half the number, since a pair beyond that point is one already found with its two members exchanged.
10 has 2 pairs of primes with any two primes.
- The number
- 10
- Primes tried
- 3
- Pairs
- 2
- Rule
- any two primes
The even number
One prime at a time
Use Step for one change you can inspect, or Run to watch the changes accumulate.
Which pairs count
Requiring both primes to be one more than a multiple of four is the only rule on this page that fails, and it fails for every multiple of four, because two such primes add to two more than a multiple of four. Goldbach’s own rule never fails here, which is exactly why something that does is worth having beside it.
Advanced parameters
The shape appears: a spray widening to the right whose lower edge climbs away from the floor.
The first three rungs count every pair of every even number in range. The last one counts nothing: it stops at the first pair it finds, so what it reports is that a pair exists and which prime gave it.
Cases worth seeing
Try this
Set the comet to a million and read what it says about the largest smallest-prime any even number needed. Why is a number that needed a large prime interesting, and why is it still not a counterexample?
What is going on
Each explanation begins with a worked example and follows the same operation through intuition, formal statements and proofs. Later sections distinguish what is established from questions that remain open, so you can follow the level of detail useful to you.
- 1010 − 2 = 88 = 2 × 48 is not primeDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself., so 2 is not one of the pair
- 1010 − 3 = 73 + 77 is primeDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself., and the first pair appears
- 1010 − 5 = 55 + 5a number may pair with itself, and here the search stops
The laboratory performs exactly those lines, one row per primeDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself., and then draws fifty thousand of these searches at once: one dot per even number, placed at the number of pairs it turned out to have. The picture that makes is called the comet, and the part worth watching is its lower edgeDefinition: An edge is a connection between two nodes in a graph..
Every even number anyone has ever tried has a pair. Every one below a million was tried on this page, and somebody else has tried every one below four quintillion. Nobody has any idea how to prove that the next one will.
What you are seeing
A plain description of the process
Choose an even whole number greater than 2. Try primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. no larger than half that number: subtract each candidate from the chosen number and check whether the remainderDefinition: The remainder is what is left after making as many complete groups of a chosen positive integer size as possible. is also prime. A prime is a whole number greater than 1 with no positive divisorsDefinition: A divisor of n is an integer that divides n with no remainder. except 1 and itself.
For 10, subtracting 2 leaves 8, which is not primeDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself.. Subtracting 3 leaves 7, giving 10 = 3 + 7, and subtracting 5 leaves 5, giving 10 = 5 + 5. There is no need to try 7, because it would give the already-counted pair 7 + 3. Equal primes are allowed.
The second view counts these pairs for many even starting values. Goldbach's conjectureDefinition: A conjecture is a precise mathematical claim supported by evidence but not yet proved. says each even number greater than 2 has at least one pair, not that it has only one.
The value 2 is available as an exception to inspect: the smallest sum of two primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. is 2 + 2 = 4, so 2 has no pair and is outside the conjectureDefinition: A conjecture is a precise mathematical claim supported by evidence but not yet proved.. Each larger value can be checked individually; what remains unproved is the statement about all of them.
Why it starts to make sense
Intuition, before any algebra
Once the numbers get large, a pair is not a coincidence. It is what you would expect from a great many attempts.
Below there are roughly primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself.. To write as a pair you may try any prime up to , which gives you something like attempts, and each attempt asks whether one particular number near happens to be prime, which has a chance of roughly . Multiply those together and the expected number of pairs is around , which grows. For that is a few hundred, and the actual count is 810.
That is the whole intuition, and it explains the shape of the comet: more attempts and a growing success rate means the counts climb, and the lower edgeDefinition: An edge is a connection between two nodes in a graph. of the spray climbs with them. It is also the reason nobody expects a counterexampleDefinition: A counterexample is one valid case that makes a universal claim false.. An even number with no pair at all would have to have every single one of those attempts fail.
And it is not a proofDefinition: A proof is a finite argument showing that a conclusion follows from stated assumptions., for a reason worth being precise about. Treating "is primeDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself." as a coin flip with probabilityDefinition: Probability measures how strongly an outcome is expected within a specified random model. is a model of the primes, and the primes are not random. They are a completely determined set, and the conjectureDefinition: A conjecture is a precise mathematical claim supported by evidence but not yet proved. is exactly the assertion that this particular determined set never conspires against one particular even number. An expected valueDefinition: The expected value is the probability-weighted average outcome of a random variable. of four hundred does not forbid an outcome of zero; it only makes it look unlikely under an assumption nobody can justify.
The rule switch on this page is there to make that concrete. Ask for both primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. to be one more than a multiple of four and the same counting argument still predicts plenty of pairs, and yet every multiple of four has none, for a reason the counting argument cannot see.
The key idea
What a search does and does not establish
The sentence worth carrying away is this one.
A search that never fails has established what it looked at, and has said nothing about what it did not.
This page checks every even number up to a million. That is 499,999 complete searches, all of them successful, and the fact established is precisely: every even number from 4 to 1,000,000 is a sum of two primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself.. Not "probably all even numbers". Not "all even numbers, subject to checking". The range is the claim.
Somebody else has done the same thing to 4×10^18. That is an extraordinary computation and it is the same kind of statement, eighteen orders of magnitude along. The gap between it and the conjectureDefinition: A conjecture is a precise mathematical claim supported by evidence but not yet proved. is not smaller than the gap between this page and the conjecture, because both gaps are infinite.
Three things on this page are established in three different ways, and the whole point is knowing which is which.
- Ten is 3 + 7 and 5 + 5, and 2 has no pair at all. Both are proved, by finite arithmetic that is carried out in full.
- Every even number from 4 to a million has a pair. That is exhaustively checked over exactly that range, and it is offered as a fact about that range and not as evidence for anything.
- Every even number greater than 2 has a pair. That is open, it is cited, and nothing on this page bears on it.
The temptation is for the second to slide into the third. It is a strong temptation here, because the second has no exceptions and looks like a demonstration. The way to resist it is to notice that the restricted rule would look just as convincing if you only ever tried the numbers that work.
Formal statement
Precisely what is being claimed
For an even number , let
- , since the least sum of two primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. is . Proved.
- , with the pairs and . Proved, by completing the search over primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. up to .
- for every even with . Exhaustively checked over exactly that range, with the search for each stopping at the first pair found.
- , attained at , and , attained at . Exhaustively checked over exactly that range.
- for every even . Open (Goldbach and Euler, 1742). Verified computationally for by Oliveira e Silva, Herzog and Pardi, which is a search result and not a proofDefinition: A proof is a finite argument showing that a conclusion follows from stated assumptions..
- Every odd is a sum of three primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself.. Proved (Helfgott, 2013), cited and not reproduced here.
- Let count pairs with both primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. congruent to . Then whenever . Proved, in one line, below.
- , where . HeuristicDefinition: A heuristic is a method or explanation that guides discovery without guaranteeing a proof. (Hardy and Littlewood, ConjectureDefinition: A conjecture is a precise mathematical claim supported by evidence but not yet proved. A), drawn over the comet as a prediction.
Statement 5 is the exploration. Statement 3 is what this page can establish on its own, and it is consistent with either answer to 5 without being evidence for either.
Proof
Of the parts that admit one
Two has no pair. Every primeDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. is at least 2, so every sum of two primes is at least 4. Hence . ∎
Ten has exactly two. Any pair with has , so is the complete list of candidates. Then , which is not primeDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself.; , prime; , prime. So , and the search over three candidates is exhaustive because the constraint leaves nothing above 5 to try. ∎
The restricted rule fails on every multiple of four. Suppose and . Then . A multiple of 4 is congruent to , so it is not of that form, and no such pair can exist for it. Note what this argument does not require: no primality, no searching, no bound. It is a statement about all multiples of four at once, which is precisely the kind of statement the search on this page cannot produce. ∎
Every even number below a million has a pair. Sieve to , then for each even in range walk the primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. upward until one leaves a prime behind. Each of the 499,999 searches terminates with a pair, in exact integerDefinition: An integer is a whole-number value, including zero and negative whole numbers, with no fractional part. arithmetic. This proves statement 3 and only statement 3. ∎
What is not proved here. Statement 5, in either direction. It is worth being explicit about why no amount of computing gets closer. Every even number checked removes one candidate counterexampleDefinition: A counterexample is one valid case that makes a universal claim false. from an infinite supply, so the proportion remaining is unchanged, and the conjectureDefinition: A conjecture is a precise mathematical claim supported by evidence but not yet proved. is not the sort of claim that becomes more likely as the checked range grows. A proofDefinition: A proof is a finite argument showing that a conclusion follows from stated assumptions. would have to be an argument about all even numbers, and the closest anyone has come is Chen's theoremDefinition: A theorem is a mathematical statement established by a proof from accepted definitions and earlier results. of 1973, which says every sufficiently large even number is a primeDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. plus a number with at most two prime factorsDefinition: A divisor of n is an integer that divides n with no remainder.. That is a genuinely different statement and it is the state of the art.
Limits and frontier
Where this page stops being able to help
What this laboratory computes. Searches for any even number up to 100,000, with primality from a sieve of Eratosthenes in exact integerDefinition: An integer is a whole-number value, including zero and negative whole numbers, with no fractional part. arithmetic. The comet counts every pair for every even number up to 100,000, which is about fifty thousand complete searches and runs in a background thread with a working progress bar and a cancel that really stops it. The largest rung, a million, does something different and cheaper: it stops at the first pair for each number, so what it can report is that a pair exists and how small the smallest one was. Counting every pair to a million would be roughly a hundred times the arithmetic of counting to a hundred thousand, and this page declines it rather than making you wait.
The prediction is not a fit. The curve drawn over the comet comes from Hardy and Littlewood's ConjectureDefinition: A conjecture is a precise mathematical claim supported by evidence but not yet proved. A, evaluated at each even number from its own odd primeDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. factorsDefinition: A divisor of n is an integer that divides n with no remainder.. Nothing about it is derived from the counts underneath it. At these sizes it runs about a fifth below them, and it would still run where it runs if every count on the figure were different, which is the property that makes it a prediction rather than a description.
Where the mathematics is still moving. The even conjectureDefinition: A conjecture is a precise mathematical claim supported by evidence but not yet proved. is open. The odd one was closed by Helfgott in 2013, and the distance between those two facts is the most interesting thing on this page: the two statements are one word apart in English and very far apart in difficulty, because three primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. give a circle-method argument enough room to work and two do not. Chen's theoremDefinition: A theorem is a mathematical statement established by a proof from accepted definitions and earlier results. gets within one almost-prime. Nobody has an approach that gets the rest of the way.
Read this next to Gilbreath's difference field. That page has the same shape of problem in the same objects: a pattern in the primesDefinition: A prime number is an integer greater than one whose only positive divisors are one and itself. that has held for every case anyone has computed and that nobody can prove. The pages differ in what the reader is asked to resist. On that one the surprise is that anything regular appears at all. Here there is no surprise in the picture, and the thing to resist is the feeling that half a million successful searches amount to an argument.
What is actually established
Every statement on this page, with its status, its exact scope, and the date that status was last checked.
Ten is 3 + 7 and 5 + 5, and 2 is not one of its pair because 8 is not prime.
- Scope
- The single number 10, over every prime up to half of it.
- Why
- Three subtractions and three primality checks, all of them on numbers below ten, and the search over primes up to 5 is complete because a pair with a larger first member is a pair already listed the other way round. Exhibiting the whole search is the proof, and nothing here is being trusted to a limit.
- Status checked
Two is even and cannot be written as a sum of two primes.
- Scope
- The single number 2. It is the reason the conjecture is stated about even numbers greater than 2 rather than about even numbers.
- Why
- The smallest prime is 2, so the smallest sum of two primes is 4. Nothing below that is reachable, and no search is required to know it. This is the only even number for which the question is closed, and it is closed in the negative, which is worth noticing on a page where every other answer comes from looking.
- Status checked
Every even number from 4 to 1,000,000 can be written as a sum of two primes. The hardest case is 503,222, whose smallest working prime is 523.
- Scope
- The 499,999 even numbers from 4 to 1,000,000 inclusive. Each was checked until a pair was found, so what was established for each is that at least one pair exists. Nothing here covers 1,000,002 or anything above it.
- Why
- A complete check of a finite list, which is a proof about that list and about nothing else. The result is entirely negative in form: no even number in the range was found without a pair. That is the same kind of statement as the published verification to 4×10^18 cited below, which is eighteen orders of magnitude further along and settles the conjecture exactly as little.
- Computation (exact)
- Every even number from 4 to 1,000,000, with primality decided by a sieve of Eratosthenes over the same range in exact integer arithmetic, and the search for each number stopping at the first pair found. The sieve and the counts are cross-checked in the test suite against trial division and against a brute-force double loop that shares no code with the sieve. Recomputed in the test suite. Algorithm goldbach-1.
- Status checked
Counting every pair for every even number up to 100,000, the largest count is 2,168, at 99,330, and the smallest is 1, at 4.
- Scope
- The 49,999 even numbers from 4 to 100,000 inclusive, each with all of its pairs counted rather than one found. Nothing here covers 100,002 or above, and the counts are the whole content: no trend is being claimed from them.
- Why
- This is the comet. Every pair of every even number in the range is counted, which is why the range stops at a hundred thousand while the search for existence alone reaches a million. The lowest counts climb as the numbers grow and none of them is zero, but a lower edge that has climbed so far is a description of a finite picture rather than a reason it must go on climbing.
- Computation (exact)
- Every even number from 4 to 100,000, with all pairs counted by walking the primes below half of each number against a sieve of Eratosthenes, in exact integer arithmetic. Checked in the test suite against a brute-force double loop with independent trial division for every even number up to 5,000, and against the first fifty terms of OEIS A045917 typed in by hand. Recomputed in the test suite. Algorithm goldbach-1.
- Status checked
Whether every even number greater than 2 is a sum of two primes is an open problem, and has been since 1742.
- Scope
- All even numbers. This is Goldbach’s conjecture in the form Euler gave it, stated here and neither proved nor disproved by anything on this page.
- Why
- Goldbach wrote to Euler in 1742 and Euler replied with the statement in use today. It has not been settled since. Oliveira e Silva, Herzog and Pardi verified it computationally for every even number up to 4×10^18, which is a search result reported here as a search result: it is the same sort of fact as this page’s check to a million, and no quantity of checking closes a statement about all even numbers.
- Status checked
Every odd number greater than 5 is a sum of three primes.
- Scope
- All odd numbers greater than 5. Established by Helfgott in 2013, cited here and not reproduced by anything this page computes.
- Why
- The odd version of the question is a theorem, and the even version is not. Vinogradov proved it in 1937 for all sufficiently large odd numbers, and the remaining work was to make "sufficiently large" small enough for the rest to be checked; Helfgott closed that gap. The third view exhibits triples for particular odd numbers, which is an illustration of the theorem and no part of its argument. Note also which way the implication runs: three primes summing to an odd number gives, after removing one of them, two primes summing to an even number, so the even case would imply the odd one and not the other way about.
- Status checked
If both primes are required to be 1 more than a multiple of 4, then no multiple of 4 can be written as a sum of two of them.
- Scope
- Every multiple of 4, under the restricted rule only. It says nothing about Goldbach’s own statement, which every one of those numbers satisfies.
- Why
- Two numbers of the form 4a + 1 add to 4a + 4b + 2, which is 2 more than a multiple of 4 and therefore never a multiple of 4 itself. The argument is complete in one line and needs no searching at all. It is on this page because the ordinary search never fails, and a reader who has only seen a rule succeed has no way to tell a rule that holds from a rule that has not yet been contradicted.
- Status checked
Hardy and Littlewood’s Conjecture A predicts how many pairs an even number should have, and the prediction sits below the counts at the sizes this page reaches.
- Scope
- A model, not a theorem, and an asymptotic one: it describes what should happen as the even number grows without bound, so a gap at a hundred thousand is not evidence against it and the agreement here is not evidence for it.
- Why
- The prediction is built from how often primes fall in arithmetic progressions, treating the primes as if they were distributed at random subject to the congruences they obviously satisfy. The curve drawn over the comet comes from that formula and from the even number’s own odd prime factors. It is not fitted to the counts, and nothing on this page is: the curve was computed before the dots were drawn and would sit exactly where it sits if every count were different. At a hundred thousand it runs about a fifth below the counts, which is what an asymptotic statement looks like when it is evaluated somewhere that is not large.
- Status checked
Sources
Review notes show which bibliographic details Mathomaly has checked and which remain unresolved. Checking a publication record does not independently verify its proof.
- Christian Goldbach, Leonhard Euler, Correspondence of 7 June and 30 June 1742, Letters XLIII–XLIV, reproduced in P.-H. Fuss (editor), Correspondance mathématique et physique, tome I (1843), pp. 125–136, 1742. Link
The correspondence records the origin of the conjecture, not a proof. Euler's reply discusses the even-number form and explicitly says he cannot demonstrate it.
Bibliographic record checked. This is not an independent verification of the proof.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: source text.
ETH Library's digitised Fuss edition identifies the letters of 7 and 30 June 1742 in its contents. The letter text records the prime-sum conjecture and Euler's reply. The year 1742 dates the correspondence, not the 1843 edition.
- Tomás Oliveira e Silva, Siegfried Herzog, Silvio Pardi, Empirical verification of the even Goldbach conjecture and computation of prime gaps up to 4·10^18, Mathematics of Computation 83(288), pp. 2033–2060, 2014. Link
Reports a prime pair for every even number from 4 through 4 × 10^18. The laboratory's smaller finite search neither reproduces that computation nor proves the conjecture.
Bibliographic record checked. This is not an independent verification of the proof.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: source text.
Journal PDF confirms authors, 2014 print issue and reported finite verification bound.
The proof that every odd number greater than 5 is a sum of three primes, completing a line of work begun by Vinogradov in 1937 by closing the gap between what an effective bound could reach and what a computer could check. Cited and not reproduced: this page can exhibit triples, which is not an argument about every odd number.
Bibliographic record checked. This is not an independent verification of the proof.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: author record.
Author submission confirms title, author, December 2013 date and theorem for odd integers greater than 5.
- G. H. Hardy, J. E. Littlewood, Some problems of Partitio Numerorum III: On the expression of a number as a sum of primes, Acta Mathematica 44, pp. 1–70, 1923. Link
Conjecture A, the heuristic that predicts how many partitions an even number should have. It is a model built from how often primes fall in arithmetic progressions, not a theorem, and the curve this page draws over the comet comes from it. Cited so that the curve is read as a prediction placed beside the counts rather than as anything fitted to them.
Bibliographic record checked. This is not an independent verification of the proof.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: source text.
University-hosted original confirms authors and article identity.
- OEIS A045917: number of ways to write 2n as an unordered sum of two primes, The On-Line Encyclopedia of Integer Sequences. Link
The catalogue of partition counts. Referenced as a place to check the counts here rather than as their source: the first fifty terms are typed into this page’s test suite by hand and compared against the kernel, and every count drawn on the comet is recomputed from that same kernel.
Bibliographic record checked. This is not an independent verification of the proof.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: source text.
Checked the sequence identifier, definition and displayed initial terms on the database entry.
Related by mechanism
Connected by how they work, not by sharing a topic label.