Prime factors problem complete