← All problemsSign in

Sharique and Numbers

Problem Description Sharique is very fond of number theory, therefore he used to play with numbers all the time One day, Sharique starts counting numbers from 1 to N such that the sum of digits is prime and the Exclusive – OR (XOR) of digits is One He is able to find the answer for small values of N, but unable to find it for the larger values of N Your task is to help Sharique in finding the

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