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.