This code is weird:
for(int i=0;(i<A.size()-1);i++)
{
mul = mul*A[i];
}
because
it multiply all number of the vector but the last one.
Quote:
I want to find the number of distinct prime number of a given number
Can you define this ?
Because as I understand it, it is not what is doing your code, it- is not even close.
As I understand it, your code return a list of all prime numbers below
mul
.
Complete your code so it can be run.
Show an input example that give you the error message.