I solved 6 open Erdős problems in 5 days, using @OpenAI GPT-5.6...

@Qiaoqiao2001
Shouqiao Wang@Qiaoqiao2001
214 views Jul 23, 2026 ~3 min read
Advertisement
1
I solved 6 open Erdős problems in 5 days, using @OpenAI GPT-5.6 Sol.

I have a math background, but the Codex workflow I used does not require deep mathematical knowledge.

Here’s exactly how I approached it, including my prompts 🧵
2
The six problems were:

• 390: erdosproblems.com/forum/thread/3…
• 486: erdosproblems.com/forum/thread/4…
• 536: erdosproblems.com/forum/thread/5…
• 788: erdosproblems.com/forum/thread/7…
• 1002: erdosproblems.com/forum/thread/1…
• 1038: erdosproblems.com/forum/thread/1…

I attempted around 13 problems in total, for a roughly 46% success rate.
3
The first secret is in problem selection.

I focused on problems mathematicians already cared about, especially ones actively discussed by people like Terence Tao.

I then used AI to filter out problems that seemed extremely difficult or were closely tied to major open conjectures.
4
The second secret is in prompt construction.

I used a prompt inspired by the one OpenAI used to solve the cycle double cover conjecture: cdn.openai.com/pdf/04d1d1e4-b…

The key was to make the prompt define exactly what counts as solving the problem.
5
Each prompt:
• restates the problem precisely,
• specifies what a complete proof or disproof must establish,
• lists weaker results that do not count,
• identifies problem-specific traps and edge cases,
• requires independent adversarial agents to challenge every candidate argument.
6
The prompt also tells the system how to manage the search:
• start with many independent approaches,
• keep several incompatible routes alive,
• search aggressively for counterexamples to proposed lemmas,
• mark a route as blocked if it only reduces the problem to another unproved statement of comparable strength.

The prompts I used for each problem are in the GitHub repository linked below.

To try this yourself, give GPT the problem together with a few of my successful prompts, and ask it to generate a new problem-specific prompt in the same style. Then verify that it preserves the original statement exactly.
7
The third secret is model selection.

I used GPT-5.6 Sol with Ultra reasoning effort. Compared with earlier models, it was effective across a much wider range of problems and much better at sustaining long, rigorous mathematical searches.
8
I then pasted the prompt into Codex, set it as the goal, and let it run. The reason is that Codex can work for long periods, retain the full research context, and use local files with no further interaction needed.

You need to be patient and give it enough time to explore.

Some problems produced a solution in around 6 hours. Others ran for roughly 32 hours before reaching a final answer.
9
The process was a continual research loop:

attempt → failure → diagnosis → new approach → proof draft → adversarial audit → repair

The model repeatedly abandoned broken ideas, attacked its own arguments, and strengthened the proof until it could no longer find substantive gaps.
10
I have published the materials here: github.com/ShouqiaoW/erdos

The repository includes the proof PDFs, LaTeX source files, and prompts used for each problem.

Some problems also include Python files for computational experiments. Two already have Lean formalizations, and formalization of the others is ongoing.
11
Huge thanks to @DavideCrapis, @MarroSamuele, and @Marcello_AI for the initial idea of using AI to work on Erdős problems; to Shurui Liu at @Stanford and @HantaoYu_Theory at @Columbia for exchanging experiences and lessons from our earlier attempts; and to my PhD advisor, @ciamac at @Columbia_Biz for many helpful discussions.

And huge thanks to @paradigm and @danrobinson for sponsoring the project and making these long compute runs possible.
Actions
What You Can Do
  • Export as PDF or Markdown
  • Batch Export to Notion
  • Bookmark & Highlight
  • LinkedIn & Instagram Carousel Maker
Create Free Account

Includes 7-day Premium trial

Advertisement