← All problemsSign in

Siddhu Prime Numbers

As Dheeru wants to go out with his girlfriend now, he wants you to solve the following problem for him. You are given a Siddhu array consisting of N integers in which Ai denotes ith element of the array. There are Q queries and each query consists two integers L and R. For each query output the number of Siddhu Primes in between L and R (both inclusive). A Siddhu Prime number is defined as a num

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