Toggle navigation
Code Exercises
Interview Planner
Interview Guide
Practice Now
Blog
About
Easy
Moderate
Challenging
Longest Palindrome in Word
Longest Common Sequence
Largest Prime Factor
Package Rice Bags (part 2)
Perfect Binary Tree Check
Complete Binary Tree Check
Largest Prime Factor
The prime factors of 455 are 5, 7 and 13.
Write a method that calculates the largest prime factor of a given number.
public Integer largestPrimeFactor(Integer n) {
}
Submit
Clear
Solution