The prime factors of 455 are 5, 7 and 13.

Write a method that calculates the largest prime factor of a given number.

Write a method that calculates the largest prime factor of a given number.

public Integer largestPrimeFactor(Integer n) {

}