Highest Power
CodeChefOpen on judge ↗
Mrs. Fernandes is unwell and wants a break during the lecture. She writes down a few numbers on the blackboard and tells them to find the highest power of certain prime numbers(which she narrates) exactly dividing the factorials of the numbers on the blackboard. Input The first line contains the number of first N prime numbers (1Output The output contains N lines each giving the highest power e
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.
Sign in to chat with the tutor and save your progress.
Sign in to start