adding interesting method for find the largest prime in a number