Prime sum game — Atcoder Doubt

Revision en1, by chillmills4869, 2023-12-22 22:14:10

Question here:

https://atcoder.jp/contests/abc239/tasks/abc239_d

The question for the limits is brute but what is the approach if all a,b,c,d can be upto 10**5. I could not figure anything out on that case. Please help me

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English chillmills4869 2023-12-22 22:14:10 261 Initial revision (published)