← All problemsSign in

Number of numbers

Given a range of numbers (BOTH INCLUSIVE), print the number of numbers, sum of whose digits is a prime number. Note: 1 is NOT considered to be a prime number. Input First line contains the number of test cases T. Each test case consists of two lines, each line containing one integer. First integer L gives the beginning of the range of values and the second integer U gives the end of range. Ou

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