primeFactors string guard