Remix.run Logo
▲ abetusk 6 hours ago

Integer factoring is in NP and coNP so, unless P=NP, factoring is not NP-Complete [0].

That is, integer factoring has a decidable, deterministic, "is this number (only) a prime", 'yes' and 'no' variant. Deciding whether it's composite doesn't mean you're given the divisor.

If P=NP, then integer factoring is in P trivially, because the polynomial hierarchy collapses, but the other way doesn't hold. To be clear, I think there's essentially no chance P=NP.

[0] https://en.wikipedia.org/wiki/Integer_factorization#Time_com...

▲meindnoch 3 hours ago | parent | next [-]

You're wrong on multiple counts.

>Integer factoring is in NP and coNP so, unless P=NP, factoring is not NP-Complete

No. We don't know if the intersection of NP and coNP equals to P.

>"is this number (only) a prime", 'yes' and 'no' variant.

This is primality testing, which was proven to be in P in 2002 via the AKS algorithm.

▲emil-lp 6 hours ago | parent | prev | next [-]

Nothing happens complexity class wise if Integer Factorization is shown to be in P.

▲odyssey7 6 hours ago | parent | prev [-]

P is a subset of NP. P?=NP is a different question.