There are known paths towards proving P=NP (much less than for the Riemann Hypothesis though), you delegate each path to a sub-swarm, ask it to make incremental progress on it. Each path itself might have multiple ways of advancing, you divide again, and so on.
It's likely what Anthropic did for RH.
Here they have 1 coordinator agent and 999 helper ones. Of course this case is much easier task, since you know exactly what needs to be done.
https://www.anthropic.com/research/formalizing-fermats-last-...
The difference is that in the case of the Riemann Hypothesis, the agents were pointed in a specific direction by a human with world class knowledge in the field (https://alpo.ge/remark.pdf). I've seen no person who's spoken for this project and said that this is a strategy that can plausibly tackle the P = NP problem.