Crumbling Numbers
CodeChefOpen on judge ↗
In the game of Crumbling Numbers you will be given a number followed by some operations which are to be performed on this number. Once the operations start, if at any point the number is divisible by a prime number P(5, other than itself, then the number becomes the largest integer smaller than the quotient after division by the prime number. If it is divisible by multiple prime numbers you must d
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