← All problemsSign in

CHOCO PRIME

Banta receives a present for Christmas Eve. That is a box full of Chocolates in which each chocolate is labeled a certain number on it. Banta wishes to eat only those chocolates which have a palindromic prime number on them. As a friend of his, help him to find these chocolates by writing a code. You are given chocolate numbered N, You need to find out whether the given number is palindromic pr

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