Problem Solving continued

Write a program to calculate largest factor of any given number
 Refer Here for the program

Write a program to find the largest prime factor of any given number

Exercise: Try to solve the problem 5 from project euler Refer Here

Solve the following hacker rank problems