← All problemsSign in

Prime Divisor

Chef is very fond of maths. He is working with the numbers to find the number of numbers between 1 and N both inclusive which are divisible by any of the prime number less than 20, but he could do only for the small numbers mathematically. He is very much enthusiastic to find the result for the larger numbers, so you being Chef's friend and also a good programmer. Help him to get the result. I

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