inefficient largest prime factor calculator