← All problemsSign in

Prime Gamers

Code chef club auditions were going on.Vasudev and Ashutosh were asked to compute the largest prime factor of a number N. One who does it earlier is selected.Help them in computing largest prime factor of given number. For example The prime factors of 13195 are 5,7,13 and 29. The largest prime factor of 13195 is 29. Input The first line of the input contains an integer T denoting the number o

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