The War with Primes
CodeChefOpen on judge ↗
There is chaos in CODE-CITY, crime is everywhere and our superhero CHEF has to save the city. The master-mind of these crimes is the gangsta named BUG. Inorder to defeat Mr.BUG , CHEF has to enter the gangsta's secret vault and destroy everything he owns. The vault is highly gaurded and can be opened only by a secret passcode. CHEF has an Array of length $N$ and he has to pick all the $Ai
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start