Largest Prime Factor
Computer Mathematics
Medium
2 views
Problem Description
Print the largest prime factor of n.
Input Format
One integer n.
Output Format
One integer.
Official Solution
Factor by trial division, track last prime seen. If remaining>1 it is largest.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!