Solution to the largest prime factor using BigIntegers