PrimeSeller
CodeChefOpen on judge ↗
In a Chefland one fruit Seller namely chef have a basket of fruits containing $m$ defective and $n$ Non-defective Fruits . If the Number of Effective Fruits ($n$-$m$) is a prime number then chef will be known as a Prime seller of his Planet . Now your task is to help chef to become prime seller of chefland. you are allowed to eat only non defective fruits . Output the minimum no of fruits to b
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