Satyam and his dream
CodeChefOpen on judge ↗
Satyam's dream is to be the fastest in answering all the questions asked to him. To accomplish his dream his friends Ujjwal, Aman and Abhay try to help him in this. They give him a bunch of numbers. Now they give Satyam a bunch of queries and they ask him to tell the sum of all prime numbers among the elements between those indices. Input First line contains two integers n(1q(1n elements.(1q l
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