← All problemsSign in

Help Distribute Sweets

A teacher has $n$ sweets and wants to distribute it to $k$ children on the occasion of Children's day in such a way that all the child get equal number of sweets. Also sweets recieved by every child should be prime Since the teacher is very busy so you need to tell her how many sweets should she give to each child. ###Input: - First line of input will contain the number of testcases $t$ - N

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