Shimu and her room number
CodeChefOpen on judge ↗
One day chef visited his school friend shimu. Shimu is now a very talented and busy cook. To show off her talent, shimu told Chef about her room number (composite) whose digits when summed up, equals the sum of the digits in its prime factorization. Shimu then further asked Chef if his room number has this property. Chef decided to code for this problem. You're given an integer N. Write a program
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