← All problemsSign in

Number Game

Kavya is fond of playing with numbers. One day, she went to her friend's house and her friend gave her an interesting task. She gave her two numbers a and b (a<=b) and ask her to find the sum of all the prime numbers between a and b. Kavya is little bit confused and asking for a help from you. Now, you have to help her to find the sum of all prime numbers between a and b (a and b inclusive). You

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