← All problemsSign in

Lottery System

Arjun bought a lottery ticket. Take the input of his 7 digit lottery ticket number. If the starting 4 digit number is palindrome and last 3 digit number is palindrome prime then he won first prize else if starting 4 digit number is prime and ending 3 digit number is Armstrong then he has won second prize else he did not win anything. Inform him about the result of the lottery. Input : The fi

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