In this video, we are given a number N, the task is to find the largest prime factor of that number.
Example:
Input:
N = 5
Output:
5
Explanation:
5 has 1 prime factor i.e 5 only.
Give the problem a try before going through the video. All the best!!!
Problem Link: https://practice.geeksforgeeks.org/problems/largest-prime-factor2601/1
Solution IDE Link: https://ide.geeksforgeeks.org/online-cpp14-compiler/3837c622-0a85-4a6c-af4a-806135adc39b