Sum of Prime
CodeChefOpen on judge ↗
Chef is a maths teacher in school. Once when he was teaching prime number in the class, a boy asked chef to give the sum of all prime numbers between $M$ to $N$ (including M or N if they also prime ). Since the class time is over ,chef has to go for next class . So the chef give the task to the class monitor . But the class monitor is weak in maths so he asked for your help . Help the monitor to
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