5

It is well known and easy to design a polynomial algorithm to test whether $\omega(x)=1$ or $\omega(x)\neq 1$, where $\omega(\cdot)$ is the omega prime function, i.e. , $\omega(x)$ denotes the number of distinct prime factors of $x$. But I don't know of a polynomial algorithm for the test of $\omega(x)=2$. If someone can give me some reference in case there is a polynomial algorithm or in case it is conjectured or known that there is no polynomial algorithm.

Ragno
  • 419
  • Related to https://math.stackexchange.com/questions/433792/check-if-a-number-is-semiprime – lhf Jun 09 '22 at 20:39
  • 1
    Finding the number of (distinct) prime factors is in general not significantly easier than factoring. No efficient algorithm is known. – Peter Jun 10 '22 at 10:09

0 Answers0