← All problemsSign in

GEET HATE PRIMES

Geet is frustrated with Math assignments and has taken a very strong dislike toward prime numbers but last assignment is still remaining help Geet to solve it. Here’s the question: Given $N$ numbers $A1$, $A2$, $A3$, $A4$, ..., $An$. For each element $Ai$, find sum of difference between the terms in the left and right of $Ai$ whose difference is positive and where $Aj$ is not prime. Stop probin

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start