← All problemsSign in

Prime Frequency

Ramakrishnan aka Ram loves prime numbers. He is always interested in solving and setting problems on primes. His brother Sanju has been given the responsibility of setting the problems for ITRIX Online Programming Contest. Sanju decides to set a problem on math for which he asked Ram to help him. If Ram gave a problem which impresses Sanju, Sanju will present him a gift. Ram loves gifts too. Ram a

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